You are here

public function LayoutBase::getDescription in Layout Plugin (obsolete, use core's Layout Discovery) 8

Gets the optional description for advanced layouts.

Return value

\Drupal\Core\Annotation\Translation|NULL The layout description.

File

src/Plugin/Layout/LayoutBase.php, line 38

Class

LayoutBase
Provides a base class for Layout plugins.

Namespace

Drupal\layout_plugin\Plugin\Layout

Code

public function getDescription() {
  return isset($this->pluginDefinition['description']) ? $this->pluginDefinition['description'] : NULL;
}