You are here

public function SortableViewsStyleTrait::__construct in Sortableviews 8

Constructs a PluginBase object.

Parameters

array $configuration: A configuration array containing information about the plugin instance.

string $plugin_id: The plugin_id for the plugin instance.

mixed $plugin_definition: The plugin implementation definition.

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

\Drupal\Core\Routing\UrlGeneratorInterface $url_generator: The URL generator service.

\Drupal\Core\Entity\EntityFieldManagerInterface $entity_field_manager: The Entity Field Manager service.

File

src/SortableViewsStyleTrait.php, line 53

Class

SortableViewsStyleTrait
Provides sortable functionality for View styles.

Namespace

Drupal\sortableviews

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, EntityTypeManagerInterface $entity_manager, UrlGeneratorInterface $url_generator, EntityFieldManagerInterface $entity_field_manager) {
  $this->entityManager = $entity_manager;
  $this->urlGenerator = $url_generator;
  $this->entityFieldManager = $entity_field_manager;
  parent::__construct($configuration, $plugin_id, $plugin_definition);
}