TourTipPluginDefinitionDecorator.php in Plugin 8.2
Namespace
Drupal\plugin\PluginDefinitionFile
src/PluginDefinition/TourTipPluginDefinitionDecorator.phpView source
<?php
namespace Drupal\plugin\PluginDefinition;
/**
* Provides a tour tip plugin definition decorator.
*
* @ingroup Plugin
*/
class TourTipPluginDefinitionDecorator extends ArrayPluginDefinitionDecorator {
/**
* {@inheritdoc}
*/
public function setLabel($label) {
$this->arrayDefinition['title'] = $label;
return $this;
}
/**
* {@inheritdoc}
*/
public function getLabel() {
return isset($this->arrayDefinition['title']) ? $this->arrayDefinition['title'] : NULL;
}
}
Classes
Name | Description |
---|---|
TourTipPluginDefinitionDecorator | Provides a tour tip plugin definition decorator. |