enable = $enable; $disabled = array_merge(static::$disabledTypes, $disabled); parent::__construct($disabled); } /** * {@inheritdoc} */ public function getSupportedTypes() { $supported = parent::getSupportedTypes(); if (in_array(self::TYPE_TEXT, $this->enable)) { $supported[self::TYPE_TEXT] = array( 'name' => 'text', 'label' => mt('eventdb', 'Text'), 'icon' => 'doc-text', 'urlParams' => array('format' => 'text'), ); } return $supported; } public function apply(Tabs $tabs) { parent::apply($tabs); if ($textTab = $tabs->get(self::TYPE_TEXT)) { $textTab->setTargetBlank(false); } } }