You are here

public function GridStackFormatterTrait::admin in GridStack 8.2

Same name and namespace in other branches
  1. 8 src/Plugin/Field/FieldFormatter/GridStackFormatterTrait.php \Drupal\gridstack\Plugin\Field\FieldFormatter\GridStackFormatterTrait::admin()

Returns the gridstack admin service shortcut.

File

src/Plugin/Field/FieldFormatter/GridStackFormatterTrait.php, line 78

Class

GridStackFormatterTrait
A Trait common for gridstack formatters.

Namespace

Drupal\gridstack\Plugin\Field\FieldFormatter

Code

public function admin() {
  return \Drupal::service('gridstack.admin');
}