You are here

public function BlazyMediaFormatter::getScopedFormElements in Blazy 8.2

Defines the scope for the form elements.

Overrides BlazyEntityMediaBase::getScopedFormElements

File

src/Plugin/Field/FieldFormatter/BlazyMediaFormatter.php, line 41

Class

BlazyMediaFormatter
Plugin for blazy media formatter.

Namespace

Drupal\blazy\Plugin\Field\FieldFormatter

Code

public function getScopedFormElements() {
  $multiple = $this->fieldDefinition
    ->getFieldStorageDefinition()
    ->isMultiple();
  return [
    'fieldable_form' => FALSE,
    'grid_form' => $multiple,
    'layouts' => [],
    'style' => $multiple,
    'thumbnail_style' => TRUE,
    'vanilla' => FALSE,
  ] + $this
    ->getCommonScopedFormElements() + parent::getScopedFormElements();
}