* @git Joomla Component Builder * @copyright Copyright (C) 2015 Vast Development Method. All rights reserved. * @license GNU General Public License version 2 or later; see LICENSE.txt */ use Joomla\CMS\Router\Route; // No direct access to this file defined('_JEXEC') or die; /** @var \VDM\Component\Componentbuilder\Administrator\View\Server\HtmlView $this */ $icon = 'icon-check'; $title_key = $this->item->id ?? ''; $title_column = $this->item->name ?? ''; $data = [ 'contentType' => 'com_componentbuilder.server', 'id' => $title_key, 'title' => $title_column, 'uri' => Route::_('index.php?option=com_componentbuilder&layout=modal&tmpl=component&id='. (int) ($this->item->id ?? 0)) ]; // Add Content select script /** @var Joomla\CMS\WebAsset\WebAssetManager $wa */ $wa = $this->getDocument()->getWebAssetManager(); $wa->useScript('modal-content-select'); // The data for Content select script $this->getDocument()->addScriptOptions('content-select-on-load', $data, false); ?>