/** * Get plugin name for Twig. * * @return string */ public function getName() { return isset($this->slug) ? parent::getName() : get_class($this); }