abstract class SlickEntityReferenceFormatterBase in Slick Carousel 7.3
Same name and namespace in other branches
- 8.2 src/Plugin/Field/FieldFormatter/SlickEntityReferenceFormatterBase.php \Drupal\slick\Plugin\Field\FieldFormatter\SlickEntityReferenceFormatterBase
- 8 src/Plugin/Field/FieldFormatter/SlickEntityReferenceFormatterBase.php \Drupal\slick\Plugin\Field\FieldFormatter\SlickEntityReferenceFormatterBase
Base class for slick entity reference formatters with field details.
Hierarchy
- class \Drupal\blazy\Plugin\Field\FieldFormatter\FormatterBase implements FormatterInterface
- class \Drupal\blazy\Plugin\Field\FieldFormatter\BlazyFormatterBase
- class \Drupal\blazy\Plugin\Field\FieldFormatter\BlazyEntityBase
- class \Drupal\blazy\Plugin\Field\FieldFormatter\BlazyEntityReferenceBase
- class \Drupal\slick\Plugin\Field\FieldFormatter\SlickEntityReferenceFormatterBase uses SlickFormatterTrait
- class \Drupal\blazy\Plugin\Field\FieldFormatter\BlazyEntityReferenceBase
- class \Drupal\blazy\Plugin\Field\FieldFormatter\BlazyEntityBase
- class \Drupal\blazy\Plugin\Field\FieldFormatter\BlazyFormatterBase
Expanded class hierarchy of SlickEntityReferenceFormatterBase
File
- src/
Plugin/ Field/ FieldFormatter/ SlickEntityReferenceFormatterBase.php, line 13
Namespace
Drupal\slick\Plugin\Field\FieldFormatterView source
abstract class SlickEntityReferenceFormatterBase extends BlazyEntityReferenceBase {
use SlickFormatterTrait;
/**
* {@inheritdoc}
*/
public static function defaultSettings() {
return SlickDefault::extendedSettings() + parent::defaultSettings();
}
/**
* Constructs a SlickEntityReferenceFormatter instance.
*/
public function __construct($plugin_id, $field, $instance, SlickFormatterInterface $formatter, SlickManagerInterface $manager) {
parent::__construct($plugin_id, $field, $instance);
$this->formatter = $formatter;
$this->manager = $manager;
}
/**
* {@inheritdoc}
*/
public function getScopedFormElements() {
$scopes = parent::getScopedFormElements();
return [
'nav' => TRUE,
'layouts' => $this->stringOptions,
'thumb_captions' => $this->textOptions,
'thumb_positions' => TRUE,
'use_view_mode' => TRUE,
'vanilla' => TRUE,
] + $scopes;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
BlazyEntityBase:: |
protected | property | The blazy entity instance. | |
BlazyEntityBase:: |
public | function | Returns the blazy entity object. | |
BlazyEntityBase:: |
public | function | Returns media contents. | |
BlazyEntityBase:: |
protected | function |
Converts $items array to object for easy D8 -> D7 backports. Overrides BlazyFormatterBase:: |
|
BlazyEntityReferenceBase:: |
protected | property | The link options. | |
BlazyEntityReferenceBase:: |
protected | property | The string options. | |
BlazyEntityReferenceBase:: |
protected | property | The text options. | |
BlazyEntityReferenceBase:: |
public | function |
Build individual item contents. Overrides BlazyEntityBase:: |
|
BlazyEntityReferenceBase:: |
public | function |
Builds the settings. Overrides FormatterBase:: |
|
BlazyEntityReferenceBase:: |
public | function | Builds slide captions with possible multi-value fields. | |
BlazyEntityReferenceBase:: |
public | function |
Returns required form elements for the current formatter. Overrides BlazyFormatterBase:: |
|
BlazyEntityReferenceBase:: |
public | function |
Implements hook_field_formatter_settings_form(). Overrides BlazyEntityBase:: |
|
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 | ||
FormatterBase:: |
protected | property | The blazy-related admin formatter service. | |
FormatterBase:: |
protected | property | Whether default settings have been merged into the current $settings. | |
FormatterBase:: |
protected | property | The field definition. | |
FormatterBase:: |
protected | property | The field display. | |
FormatterBase:: |
protected | property | The field instance. | |
FormatterBase:: |
protected | property | The form settings. | |
FormatterBase:: |
protected | property | True if the field cardinality equals -1. | |
FormatterBase:: |
protected | property | The known hard-coded entities. | |
FormatterBase:: |
protected | property | The langcode. | |
FormatterBase:: |
protected | property | The blazy formatter plugin id. | |
FormatterBase:: |
protected | property | The formatter settings. | |
FormatterBase:: |
protected | property | The view mode. | |
FormatterBase:: |
public | function | Implements hook_field_formatter_settings_form(). | |
FormatterBase:: |
public | function | ||
FormatterBase:: |
public | function | Gets html settings. | |
FormatterBase:: |
public | function | Gets formatter plugin id. | |
FormatterBase:: |
public | function | ||
FormatterBase:: |
public | function | Gets formatter settings. | |
FormatterBase:: |
protected | function | Merges default settings values into $settings. | |
FormatterBase:: |
public | function | Sets html settings. | |
FormatterBase:: |
public | function | ||
FormatterBase:: |
public | function | Sets formatter settings. | |
FormatterBase:: |
protected | function | Setup common variables across different hooks. | |
FormatterBase:: |
public | function | Implements hook_field_formatter_view(). | |
SlickEntityReferenceFormatterBase:: |
public static | function |
Returns default settings. Overrides BlazyEntityReferenceBase:: |
|
SlickEntityReferenceFormatterBase:: |
public | function |
Defines the scope for the form elements. Overrides BlazyEntityReferenceBase:: |
|
SlickEntityReferenceFormatterBase:: |
public | function |
Constructs a SlickEntityReferenceFormatter instance. Overrides FormatterBase:: |
|
SlickFormatterTrait:: |
public | function | Returns the slick admin service. | |
SlickFormatterTrait:: |
public | function | 1 |