You are here

public function ViewsFieldTemplate::__construct in Calendar 8

Same name in this branch
  1. 8 src/Plugin/Derivative/ViewsFieldTemplate.php \Drupal\calendar\Plugin\Derivative\ViewsFieldTemplate::__construct()
  2. 8 src/Plugin/ViewsTemplateBuilder/ViewsFieldTemplate.php \Drupal\calendar\Plugin\ViewsTemplateBuilder\ViewsFieldTemplate::__construct()

Constructs a ViewsBlock object.

Parameters

string $base_plugin_id: The base plugin ID.

\Drupal\Core\Entity\EntityTypeManagerInterface $manager: The entity type manager service.

\Drupal\views\ViewsData $views_data: The entity storage to load views.

\Drupal\Core\Entity\EntityFieldManagerInterface $field_manager: The entity field manager interface.

File

src/Plugin/Derivative/ViewsFieldTemplate.php, line 77

Class

ViewsFieldTemplate
Derivative class to find all field and properties for calendar View Builders.

Namespace

Drupal\calendar\Plugin\Derivative

Code

public function __construct($base_plugin_id, EntityTypeManagerInterface $manager, ViewsData $views_data, EntityFieldManagerInterface $field_manager) {
  $this->basePluginId = $base_plugin_id;
  $this->entityManager = $manager;
  $this->viewsData = $views_data;
  $this->fieldManager = $field_manager;
}