You are here

public function BlazyTestEntityReferenceFormatterTest::admin in Blazy 8

Same name and namespace in other branches
  1. 8.2 tests/modules/blazy_test/src/Plugin/Field/FieldFormatter/BlazyTestEntityReferenceFormatterTest.php \Drupal\blazy_test\Plugin\Field\FieldFormatter\BlazyTestEntityReferenceFormatterTest::admin()

Returns the blazy_test admin service shortcut.

Overrides BlazyFormatterBaseTrait::admin

1 call to BlazyTestEntityReferenceFormatterTest::admin()
BlazyTestEntityReferenceFormatterTest::getScopedFormElements in tests/modules/blazy_test/src/Plugin/Field/FieldFormatter/BlazyTestEntityReferenceFormatterTest.php
Defines the scope for the form elements.

File

tests/modules/blazy_test/src/Plugin/Field/FieldFormatter/BlazyTestEntityReferenceFormatterTest.php, line 83

Class

BlazyTestEntityReferenceFormatterTest
Plugin implementation of the 'Blazy Entity Reference' formatter.

Namespace

Drupal\blazy_test\Plugin\Field\FieldFormatter

Code

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