You are here

class GridStackImageFormatter in GridStack 8

Same name and namespace in other branches
  1. 8.2 src/Plugin/Field/FieldFormatter/GridStackImageFormatter.php \Drupal\gridstack\Plugin\Field\FieldFormatter\GridStackImageFormatter

Plugin implementation of the 'GridStack Image' formatter.

Plugin annotation


@FieldFormatter(
  id = "gridstack_image",
  label = @Translation("GridStack Image"),
  description = @Translation("Display the images as a GridStack."),
  field_types = {"image"},
  quickedit = {"editor" = "disabled"}
)

Hierarchy

Expanded class hierarchy of GridStackImageFormatter

File

src/Plugin/Field/FieldFormatter/GridStackImageFormatter.php, line 16

Namespace

Drupal\gridstack\Plugin\Field\FieldFormatter
View source
class GridStackImageFormatter extends GridStackFileFormatterBase {
  use GridStackFormatterTrait;

}

Members

Namesort descending Modifiers Type Description Overrides
GridStackFileFormatterBase::buildElements public function Build the gridstack carousel elements.
GridStackFileFormatterBase::buildSettings public function Builds the settings.
GridStackFileFormatterBase::create public static function
GridStackFileFormatterBase::defaultSettings public static function
GridStackFileFormatterBase::getScopedFormElements public function 1
GridStackFileFormatterBase::settingsForm public function
GridStackFileFormatterBase::viewElements public function
GridStackFileFormatterBase::__construct public function Constructs a GridStackImageFormatter instance.
GridStackFormatterTrait::$formatter protected property The gridstack field formatter manager.
GridStackFormatterTrait::$manager protected property The gridstack field formatter manager.
GridStackFormatterTrait::admin public function Returns the gridstack admin service shortcut.
GridStackFormatterTrait::formatter public function Returns the gridstack field formatter service.
GridStackFormatterTrait::isApplicable public static function 3
GridStackFormatterTrait::manager public function Returns the gridstack service.
GridStackFormatterTrait::settingsSummary public function