You are here

public function ValidFacebookInstantArticles::__construct in Facebook Instant Articles 8.2

Same name and namespace in other branches
  1. 3.x modules/fb_instant_articles_views/src/Plugin/views/filter/ValidFacebookInstantArticles.php \Drupal\fb_instant_articles_views\Plugin\views\filter\ValidFacebookInstantArticles::__construct()

ValidFacebookInstantArticles constructor.

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\EntityTypeBundleInfoInterface $entity_type_bundle_info: Entity type bundle info service.

\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: Entity type manager service.

Overrides HandlerBase::__construct

File

modules/fb_instant_articles_views/src/Plugin/views/filter/ValidFacebookInstantArticles.php, line 52

Class

ValidFacebookInstantArticles
Simple filter that checks if a node implements the FIA custom view mode.

Namespace

Drupal\fb_instant_articles_views\Plugin\views\filter

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, EntityTypeBundleInfoInterface $entity_type_bundle_info, EntityTypeManagerInterface $entity_type_manager) {
  parent::__construct($configuration, $plugin_id, $plugin_definition);
  $this->entityTypeBundleInfo = $entity_type_bundle_info;
  $this->entityTypeManager = $entity_type_manager;
}