Mercurial > hg > isophonics-drupal-site
view core/modules/help/src/Plugin/HelpSection/HelpSectionPluginBase.php @ 14:1fec387a4317
Update Drupal core to 8.5.2 via Composer
author | Chris Cannam |
---|---|
date | Mon, 23 Apr 2018 09:46:53 +0100 |
parents | 4c8ae668cc8c |
children |
line wrap: on
line source
<?php namespace Drupal\help\Plugin\HelpSection; use Drupal\Core\Cache\UnchangingCacheableDependencyTrait; use Drupal\Core\Plugin\PluginBase; use Drupal\help\HelpSectionPluginInterface; /** * Provides a base class for help section plugins. * * @see \Drupal\help\HelpSectionPluginInterface * @see \Drupal\help\Annotation\HelpSection * @see \Drupal\help\HelpSectionManager */ abstract class HelpSectionPluginBase extends PluginBase implements HelpSectionPluginInterface { use UnchangingCacheableDependencyTrait; /** * {@inheritdoc} */ public function getTitle() { return $this->getPluginDefinition()['title']; } /** * {@inheritdoc} */ public function getDescription() { return $this->getPluginDefinition()['description']; } }