You are here

public function FieldBlock::__construct in Field as Block 8

Constructs a FieldBlock deriver object.

Parameters

\Drupal\Core\Entity\Entity\EntityViewDisplay $entity_view_display: The entity view display storage.

\Drupal\Core\StringTranslation\TranslationInterface $string_translation: The string translation.

File

src/Plugin/Derivative/FieldBlock.php, line 41
Contains \Drupal\fieldblock\Plugin\Derivative\FieldBlock.

Class

FieldBlock
Provides block plugin definitions for fieldblock blocks.

Namespace

Drupal\fieldblock\Plugin\Derivative

Code

public function __construct($entity_view_display, TranslationInterface $string_translation) {
  $this->entityViewDisplayStorage = $entity_view_display;
  $this->stringTranslation = $string_translation;
}