trait BlazyFormatterTrait in Blazy 7
Same name and namespace in other branches
- 8.2 src/Plugin/Field/FieldFormatter/BlazyFormatterTrait.php \Drupal\blazy\Plugin\Field\FieldFormatter\BlazyFormatterTrait
- 8 src/Plugin/Field/FieldFormatter/BlazyFormatterTrait.php \Drupal\blazy\Plugin\Field\FieldFormatter\BlazyFormatterTrait
A Trait common for blazy formatters.
Hierarchy
- trait \Drupal\blazy\Plugin\Field\FieldFormatter\BlazyFormatterTrait
File
- src/
Plugin/ Field/ FieldFormatter/ BlazyFormatterTrait.php, line 8
Namespace
Drupal\blazy\Plugin\Field\FieldFormatterView source
trait BlazyFormatterTrait {
/**
* The blazy-related formatter service.
*
* @var \Drupal\blazy\BlazyFormatter
*/
protected $formatter;
/**
* The blazy field formatter manager.
*
* @var \Drupal\blazy\BlazyManagerInterface
*/
protected $manager;
/**
* Returns the blazy-related formatter.
*/
public function formatter() {
return $this->formatter;
}
/**
* Returns the blazy service.
*/
public function manager() {
return $this->manager;
}
/**
* {@inheritdoc}
*/
public function settingsSummary(array $definition) {
return $this
->admin()
->getSettingsSummary($definition);
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
BlazyFormatterTrait:: |
protected | property | The blazy-related formatter service. | |
BlazyFormatterTrait:: |
protected | property | The blazy field formatter manager. | |
BlazyFormatterTrait:: |
public | function | Returns the blazy-related formatter. | |
BlazyFormatterTrait:: |
public | function | Returns the blazy service. | |
BlazyFormatterTrait:: |
public | function |