You are here

class GridStackImageFormatter in GridStack 8.2

Same name and namespace in other branches
  1. 8 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 {

}

Members

Namesort descending Modifiers Type Description Overrides
GridStackFileFormatterBase::buildElements public function Build the gridstack carousel elements.
GridStackFileFormatterBase::create public static function 1
GridStackFileFormatterBase::defaultSettings public static function
GridStackFileFormatterBase::getScopedFormElements public function 1
GridStackFileFormatterBase::viewElements public function
GridStackFormatterTrait::$formatter protected property The gridstack field formatter manager.
GridStackFormatterTrait::$loggerFactory protected property The logger factory.
GridStackFormatterTrait::$manager protected property The gridstack field formatter manager.
GridStackFormatterTrait::admin public function Returns the gridstack admin service shortcut.
GridStackFormatterTrait::blazyManager public function Overrides the blazy manager.
GridStackFormatterTrait::buildSettings public function Builds the settings.
GridStackFormatterTrait::formatter public function Returns the gridstack field formatter service.
GridStackFormatterTrait::getCommonFieldDefinition public function Defines the common scope for both front and admin.
GridStackFormatterTrait::getCommonScopedFormElements public function Defines the common scope for the form elements.
GridStackFormatterTrait::injectServices protected static function Injects DI services.
GridStackFormatterTrait::isApplicable public static function 4
GridStackFormatterTrait::manager public function Returns the gridstack service.
GridStackFormatterTrait::settingsSummary public function
GridStackFormatterViewTrait::commonViewElements public function Returns similar view elements.