bibcite-8.x-1.x-dev/modules/bibcite_entity/src/Plugin/views/argument/BibciteKeyword.php
modules/bibcite_entity/src/Plugin/views/argument/BibciteKeyword.php
<?php
namespace Drupal\bibcite_entity\Plugin\views\argument;
use Symfony\Component\DependencyInjection\ContainerInterface;
/**
* Argument handler to accept a keyword id.
*
* @ViewsArgument("bibcite_keyword")
*/
class BibciteKeyword extends IdArgumentBase {
/**
* {@inheritdoc}
*/
public static function create(ContainerInterface $container, array $configuration, $plugin_id, $plugin_definition) {
/** @var \Drupal\Core\Entity\EntityTypeManagerInterface $entity_manager */
$entity_manager = $container->get('entity_type.manager');
$storage = $entity_manager->getStorage('bibcite_keyword');
return new static(
$configuration,
$plugin_id,
$plugin_definition,
$storage
);
}
}
