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::formElement in src/Plugin/Field/FieldWidget/ButtonFieldBase.php
@todo Add ajax callback.
2 methods override ButtonFieldBase::elementProperties()
ButtonFieldHtml::elementProperties in src/Plugin/Field/FieldWidget/ButtonFieldHtml.php
Retrieves the properties for the current widget's element.
ButtonFieldImage::elementProperties in src/Plugin/Field/FieldWidget/ButtonFieldImage.php
Retrieves the properties for the current widget's element.

File

src/Plugin/Field/FieldWidget/ButtonFieldBase.php, line 79
Contains Drupal\button_field\Plugin\Field\FieldWidget\ButtonFieldBase.

Class

ButtonFieldBase
Base implementation for button field widgets.

Namespace

Drupal\button_field\Plugin\Field\FieldWidget

Code

protected abstract function elementProperties();