You are here

public function Media::setFieldName in GridStack 8.2

Sets the field name.

1 call to Media::setFieldName()
MediaForm::getFieldDefinition in src/Plugin/gridstack/stylizer/MediaForm.php
Returns available field media definition.

File

src/Plugin/gridstack/stylizer/Media.php, line 49

Class

Media
Provides the media styles for front-end.

Namespace

Drupal\gridstack\Plugin\gridstack\stylizer

Code

public function setFieldName($name) {
  $this->fieldName = $name;
  return $this;
}