StatePermissions.php in Booking and Availability Management Tools for Drupal 8
Contains \Drupal\bat_event\StatePermissions.
Namespace
Drupal\bat_eventFile
modules/bat_event/src/StatePermissions.phpView source
<?php
/**
* @file
* Contains \Drupal\bat_event\StatePermissions.
*/
namespace Drupal\bat_event;
use Drupal\Core\DependencyInjection\ContainerInjectionInterface;
use Drupal\Core\Entity\EntityTypeManagerInterface;
use Drupal\Core\StringTranslation\StringTranslationTrait;
use Symfony\Component\DependencyInjection\ContainerInterface;
/**
*
*/
class StatePermissions implements ContainerInjectionInterface {
use StringTranslationTrait;
/**
* The entity manager.
*
* @var \Drupal\Core\Entity\EntityTypeManagerInterface
*/
protected $entityTypeManager;
/**
* Constructs a new FilterPermissions instance.
*
* @param \Drupal\Core\Entity\EntityTypeManagerInterface $entity_manager
* The entity manager.
*/
public function __construct(EntityTypeManagerInterface $entity_manager) {
$this->entityTypeManager = $entity_manager;
}
/**
* {@inheritdoc}
*/
public static function create(ContainerInterface $container) {
return new static($container
->get('entity_type.manager'));
}
/**
* Returns an array of filter permissions.
*
* @return array
*/
public function permissions() {
$permissions = [];
return $permissions;
}
}
Classes
Name | Description |
---|---|
StatePermissions |