You are here

public function GridStackFormatterTrait::getCommonScopedFormElements in GridStack 8.2

Defines the common scope for the form elements.

4 calls to GridStackFormatterTrait::getCommonScopedFormElements()
GridStackEntityFormatterBase::getScopedFormElements in src/Plugin/Field/FieldFormatter/GridStackEntityFormatterBase.php
GridStackFileFormatter::getScopedFormElements in src/Plugin/Field/FieldFormatter/GridStackFileFormatter.php
GridStackFileFormatterBase::getScopedFormElements in src/Plugin/Field/FieldFormatter/GridStackFileFormatterBase.php
GridStackMediaFormatter::getScopedFormElements in src/Plugin/Field/FieldFormatter/GridStackMediaFormatter.php
Defines the scope for the form elements.

File

src/Plugin/Field/FieldFormatter/GridStackFormatterTrait.php, line 127

Class

GridStackFormatterTrait
A Trait common for gridstack formatters.

Namespace

Drupal\gridstack\Plugin\Field\FieldFormatter

Code

public function getCommonScopedFormElements() {
  return [
    'settings' => $this
      ->getSettings(),
  ] + $this
    ->getCommonFieldDefinition();
}