public function FormatterBase::__construct in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/lib/Drupal/Core/Field/FormatterBase.php \Drupal\Core\Field\FormatterBase::__construct()
Constructs a FormatterBase object.
Parameters
string $plugin_id: The plugin_id for the formatter.
mixed $plugin_definition: The plugin implementation definition.
\Drupal\Core\Field\FieldDefinitionInterface $field_definition: The definition of the field to which the formatter is associated.
array $settings: The formatter settings.
string $label: The formatter label display setting.
string $view_mode: The view mode.
array $third_party_settings: Any third party settings.
Overrides PluginBase::__construct
10 calls to FormatterBase::__construct()
- CommentDefaultFormatter::__construct in core/
modules/ comment/ src/ Plugin/ Field/ FieldFormatter/ CommentDefaultFormatter.php - Constructs a new CommentDefaultFormatter.
- DateTimeFormatterBase::__construct in core/
modules/ datetime/ src/ Plugin/ Field/ FieldFormatter/ DateTimeFormatterBase.php - Constructs a new DateTimeDefaultFormatter.
- DateTimeTimeAgoFormatter::__construct in core/
modules/ datetime/ src/ Plugin/ Field/ FieldFormatter/ DateTimeTimeAgoFormatter.php - Constructs a DateTimeTimeAgoFormatter object.
- EntityReferenceEntityFormatter::__construct in core/
lib/ Drupal/ Core/ Field/ Plugin/ Field/ FieldFormatter/ EntityReferenceEntityFormatter.php - Constructs a StringFormatter instance.
- ImageFormatter::__construct in core/
modules/ image/ src/ Plugin/ Field/ FieldFormatter/ ImageFormatter.php - Constructs an ImageFormatter object.
10 methods override FormatterBase::__construct()
- CommentDefaultFormatter::__construct in core/
modules/ comment/ src/ Plugin/ Field/ FieldFormatter/ CommentDefaultFormatter.php - Constructs a new CommentDefaultFormatter.
- DateTimeFormatterBase::__construct in core/
modules/ datetime/ src/ Plugin/ Field/ FieldFormatter/ DateTimeFormatterBase.php - Constructs a new DateTimeDefaultFormatter.
- DateTimeTimeAgoFormatter::__construct in core/
modules/ datetime/ src/ Plugin/ Field/ FieldFormatter/ DateTimeTimeAgoFormatter.php - Constructs a DateTimeTimeAgoFormatter object.
- EntityReferenceEntityFormatter::__construct in core/
lib/ Drupal/ Core/ Field/ Plugin/ Field/ FieldFormatter/ EntityReferenceEntityFormatter.php - Constructs a StringFormatter instance.
- ImageFormatter::__construct in core/
modules/ image/ src/ Plugin/ Field/ FieldFormatter/ ImageFormatter.php - Constructs an ImageFormatter object.
File
- core/
lib/ Drupal/ Core/ Field/ FormatterBase.php, line 67 - Contains \Drupal\Core\Field\FormatterBase.
Class
- FormatterBase
- Base class for 'Field formatter' plugin implementations.
Namespace
Drupal\Core\FieldCode
public function __construct($plugin_id, $plugin_definition, FieldDefinitionInterface $field_definition, array $settings, $label, $view_mode, array $third_party_settings) {
parent::__construct(array(), $plugin_id, $plugin_definition);
$this->fieldDefinition = $field_definition;
$this->settings = $settings;
$this->label = $label;
$this->viewMode = $view_mode;
$this->thirdPartySettings = $third_party_settings;
}