You are here

abstract protected function ButtonFieldBase::elementProperties in Button Field 8

Same name in this branch
  1. 8 src/Plugin/Field/FieldFormatter/ButtonFieldBase.php \Drupal\button_field\Plugin\Field\FieldFormatter\ButtonFieldBase::elementProperties()
  2. 8 src/Plugin/Field/FieldWidget/ButtonFieldBase.php \Drupal\button_field\Plugin\Field\FieldWidget\ButtonFieldBase::elementProperties()

Retrieves the properties for the current widget's element.

Return value

array Properties for the widget element.

1 call to ButtonFieldBase::elementProperties()
ButtonFieldBase::viewElements in src/Plugin/Field/FieldFormatter/ButtonFieldBase.php
Builds a renderable array for a field value.
2 methods override ButtonFieldBase::elementProperties()
ButtonFieldHtml::elementProperties in src/Plugin/Field/FieldFormatter/ButtonFieldHtml.php
Retrieves the properties for the current widget's element.
ButtonFieldImage::elementProperties in src/Plugin/Field/FieldFormatter/ButtonFieldImage.php
Retrieves the properties for the current widget's element.

File

src/Plugin/Field/FieldFormatter/ButtonFieldBase.php, line 80
Contains Drupal\button_field\Plugin\Field\FieldFormatter\ButtonFieldBase.

Class

ButtonFieldBase
Base implementation for button field formatters.

Namespace

Drupal\button_field\Plugin\Field\FieldFormatter

Code

protected abstract function elementProperties();