You are here

public function GridStackMediaFormatter::getScopedFormElements in GridStack 8.2

Defines the scope for the form elements.

Overrides BlazyEntityMediaBase::getScopedFormElements

File

src/Plugin/Field/FieldFormatter/GridStackMediaFormatter.php, line 59

Class

GridStackMediaFormatter
Plugin implementation of the 'GridStack Media' formatter.

Namespace

Drupal\gridstack\Plugin\Field\FieldFormatter

Code

public function getScopedFormElements() {
  return [
    'vanilla' => TRUE,
    'no_ratio' => TRUE,
    'responsive_image' => TRUE,
  ] + $this
    ->getCommonScopedFormElements() + parent::getScopedFormElements();
}