You are here

public function FarmRoleStorage::__construct in farmOS 2.x

Constructs a ConfigEntityStorage object.

Parameters

\Drupal\Core\Entity\EntityTypeInterface $entity_type: The entity type definition.

\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The config factory service.

\Drupal\Component\Uuid\UuidInterface $uuid_service: The UUID service.

\Drupal\Core\Language\LanguageManagerInterface $language_manager: The language manager.

\Drupal\Core\Cache\MemoryCache\MemoryCacheInterface $memory_cache: The memory cache backend.

\Drupal\farm_role\ManagedRolePermissionsManagerInterface $managed_role_permissions_manager: The managed role permissions manager.

Overrides ConfigEntityStorage::__construct

File

modules/core/role/src/FarmRoleStorage.php, line 46

Class

FarmRoleStorage
FarmRoleStorage.

Namespace

Drupal\farm_role

Code

public function __construct(EntityTypeInterface $entity_type, ConfigFactoryInterface $config_factory, UuidInterface $uuid_service, LanguageManagerInterface $language_manager, MemoryCacheInterface $memory_cache, ManagedRolePermissionsManagerInterface $managed_role_permissions_manager) {
  parent::__construct($entity_type, $config_factory, $uuid_service, $language_manager, $memory_cache);
  $this->managedRolePermissionsManager = $managed_role_permissions_manager;
}