Example #1
0
 /**
  * Constructs a new LatestRevision.
  *
  * @param array $configuration
  *   A configuration array containing information about the plugin instance.
  * @param string $plugin_id
  *   The plugin_id for the plugin instance.
  * @param mixed $plugin_definition
  *   The plugin implementation definition.
  * @param \Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager
  *   Entity Type Manager Service.
  * @param \Drupal\views\Plugin\ViewsHandlerManager $join_handler
  *   Views Handler Plugin Manager.
  * @param \Drupal\Core\Database\Connection $connection
  *   Database Connection.
  */
 public function __construct(array $configuration, $plugin_id, $plugin_definition, EntityTypeManagerInterface $entity_type_manager, ViewsHandlerManager $join_handler, Connection $connection)
 {
     parent::__construct($configuration, $plugin_id, $plugin_definition);
     $this->entityTypeManager = $entity_type_manager;
     $this->joinHandler = $join_handler;
     $this->connection = $connection;
 }