You are here

public function SimilarTermsArgument::__construct in Similar By Terms 8

Constructs the SimilarTermsArgument 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\Database\Connection $connection: The datbase connection.

\Drupal\taxonomy\VocabularyStorageInterface $vocabulary_storage: The vocabulary storage.

Overrides HandlerBase::__construct

File

src/Plugin/views/argument/SimilarTermsArgument.php, line 49

Class

SimilarTermsArgument
Argument handler to accept a node id.

Namespace

Drupal\similarterms\Plugin\views\argument

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, Connection $connection, VocabularyStorageInterface $vocabulary_storage) {
  parent::__construct($configuration, $plugin_id, $plugin_definition);
  $this->vocabularyStorage = $vocabulary_storage;
  $this->connection = $connection;
}