* @license GNU General Public License version 2 or later; see LICENSE.txt */ defined('_JEXEC') or die; use Joomla\CMS\Factory; use Joomla\CMS\Language\Text; $icon = $displayData['icon'] ?? 'icon-copy article'; $textPrefix = $displayData['textPrefix'] ?? ''; $textSuffix = $displayData['textSuffix'] ?? ''; $title = $displayData['title'] ?? ''; $componentLangString = $textPrefix . '_EMPTYSTATE_TITLE' . $textSuffix; $moduleLangString = $textPrefix . '_EMPTYSTATE_MODULE_TITLE' . $textSuffix; // Did we have a definitive title provided to the view? If not, let's find one! if (!$title) { // Can we find a *_EMPTYSTATE_MODULE_TITLE translation, Else use the components *_EMPTYSTATE_TITLE string $title = Factory::getApplication()->getLanguage()->hasKey($moduleLangString) ? $moduleLangString : $componentLangString; } ?>