HelpSectionPluginBase.php in Drupal 8
File
core/modules/help/src/Plugin/HelpSection/HelpSectionPluginBase.php
View source
<?php
namespace Drupal\help\Plugin\HelpSection;
use Drupal\Core\Cache\UnchangingCacheableDependencyTrait;
use Drupal\Core\Plugin\PluginBase;
use Drupal\help\HelpSectionPluginInterface;
abstract class HelpSectionPluginBase extends PluginBase implements HelpSectionPluginInterface {
use UnchangingCacheableDependencyTrait;
public function getTitle() {
return $this
->getPluginDefinition()['title'];
}
public function getDescription() {
return $this
->getPluginDefinition()['description'];
}
}