Ejemplo n.º 1
0
 /**
  *
  * @param Icon $icon
  * @param array $options
  * @author Benjamin Butschell <*****@*****.**>
  */
 public function prepareIconMarkup(Icon $icon, array $options = array())
 {
     // error checking
     if (empty($options['contentElementKey'])) {
         throw new \InvalidArgumentException('The option "contentElementKey" is required and must not be empty', 1440754978);
     }
     $this->objectManager = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Extbase\\Object\\ObjectManager');
     $this->storageRepository = $this->objectManager->get("MASK\\Mask\\Domain\\Repository\\StorageRepository");
     $this->extConf = unserialize($GLOBALS['TYPO3_CONF_VARS']['EXT']['extConf']['mask']);
     $this->contentElement = $this->storageRepository->loadElement("tt_content", $options["contentElementKey"]);
     $icon->setMarkup($this->generateMarkup($icon, $options));
 }
 /**
  * @param Icon $icon
  * @param array $options
  */
 public function prepareIconMarkup(Icon $icon, array $options = array())
 {
     $icon->setMarkup($this->generateMarkup($icon, $options));
 }
Ejemplo n.º 3
0
 /**
  * @param Icon $icon
  * @param array $options
  */
 public function prepareIconMarkup(Icon $icon, array $options = [])
 {
     $icon->setMarkup($this->generateMarkup($icon, $options));
     $icon->setAlternativeMarkup(self::MARKUP_IDENTIFIER_INLINE, $this->generateInlineMarkup($icon, $options));
 }