当前位置: 首页>>代码示例>>PHP>>正文


PHP EntityAccessControlHandler::__construct方法代码示例

本文整理汇总了PHP中Drupal\Core\Entity\EntityAccessControlHandler::__construct方法的典型用法代码示例。如果您正苦于以下问题:PHP EntityAccessControlHandler::__construct方法的具体用法?PHP EntityAccessControlHandler::__construct怎么用?PHP EntityAccessControlHandler::__construct使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Drupal\Core\Entity\EntityAccessControlHandler的用法示例。


在下文中一共展示了EntityAccessControlHandler::__construct方法的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: __construct

 /**
  * Constructs the block access control handler instance
  *
  * @param \Drupal\Core\Entity\EntityTypeInterface $entity_type
  *   The entity type definition.
  * @param \Drupal\Core\Executable\ExecutableManagerInterface $manager
  *   The ConditionManager for checking visibility of blocks.
  * @param \Drupal\Core\Plugin\Context\ContextHandlerInterface $context_handler
  *   The ContextHandler for applying contexts to conditions properly.
  * @param \Drupal\Core\Plugin\Context\ContextRepositoryInterface $context_repository
  *   The lazy context repository service.
  */
 public function __construct(EntityTypeInterface $entity_type, ExecutableManagerInterface $manager, ContextHandlerInterface $context_handler, ContextRepositoryInterface $context_repository)
 {
     parent::__construct($entity_type);
     $this->manager = $manager;
     $this->contextHandler = $context_handler;
     $this->contextRepository = $context_repository;
 }
开发者ID:aWEBoLabs,项目名称:taxi,代码行数:19,代码来源:BlockAccessControlHandler.php

示例2: __construct

  public function __construct(EntityTypeInterface $entity_type, FillPdfAccessHelperInterface $access_helper, FillPdfLinkManipulatorInterface $link_manipulator, FillPdfContextManagerInterface $context_manager) {
    parent::__construct($entity_type);

    $this->accessHelper = $access_helper;
    $this->linkManipulator = $link_manipulator;
    $this->contextManager = $context_manager;
  }
开发者ID:AshishNaik021,项目名称:iimisac-d8,代码行数:7,代码来源:FillPdfFileContextAccessControlHandler.php

示例3: __construct

 /**
  * Creates a new MenuLinkContentAccessControlHandler.
  *
  * @param \Drupal\Core\Entity\EntityTypeInterface $entity_type
  *   The entity type definition.
  * @param \Drupal\Core\Access\AccessManagerInterface $access_manager
  *   The access manager to check routes by name.
  */
 public function __construct(EntityTypeInterface $entity_type, AccessManagerInterface $access_manager)
 {
     parent::__construct($entity_type);
     $this->accessManager = $access_manager;
 }
开发者ID:aWEBoLabs,项目名称:taxi,代码行数:13,代码来源:MenuLinkContentAccessControlHandler.php

示例4: __construct

 /**
  * Constructs a NodeAccessControlHandler object.
  *
  * @param \Drupal\Core\Entity\EntityTypeInterface $entity_type
  *   The entity type definition.
  * @param \Drupal\node\NodeGrantDatabaseStorageInterface $grant_storage
  *   The node grant storage.
  */
 public function __construct(EntityTypeInterface $entity_type, NodeGrantDatabaseStorageInterface $grant_storage)
 {
     parent::__construct($entity_type);
     $this->grantStorage = $grant_storage;
 }
开发者ID:eigentor,项目名称:tommiblog,代码行数:13,代码来源:NodeAccessControlHandler.php

示例5: __construct

 /**
  * Constructs an access control handler instance.
  *
  * @param \Drupal\Core\Entity\EntityTypeInterface $entity_type
  *   The entity type definition.
  * @param \Drupal\Core\Plugin\Context\ContextHandlerInterface $context_handler
  *   The context handler.
  */
 public function __construct(EntityTypeInterface $entity_type, ContextHandlerInterface $context_handler)
 {
     parent::__construct($entity_type);
     $this->contextHandler = $context_handler;
 }
开发者ID:nB-MDSO,项目名称:mdso-d8blog,代码行数:13,代码来源:PageAccess.php

示例6: __construct

 /**
  * {@inheritdoc}
  */
 public function __construct(EntityTypeInterface $entity_type)
 {
     parent::__construct($entity_type);
     $this->eventManager = \Drupal::service('rng.event_manager');
 }
开发者ID:justincletus,项目名称:webdrupalpro,代码行数:8,代码来源:RegistrationAccessControlHandler.php

示例7: __construct

 /**
  * Constructs a ShortcutAccessControlHandler object.
  *
  * @param \Drupal\Core\Entity\EntityTypeInterface $entity_type
  *   The entity type definition.
  * @param \Drupal\shortcut\ShortcutSetStorageInterface $shortcut_set_storage
  *   The shortcut_set storage.
  */
 public function __construct(EntityTypeInterface $entity_type, ShortcutSetStorageInterface $shortcut_set_storage)
 {
     parent::__construct($entity_type);
     $this->shortcutSetStorage = $shortcut_set_storage;
 }
开发者ID:aWEBoLabs,项目名称:taxi,代码行数:13,代码来源:ShortcutAccessControlHandler.php

示例8: __construct

 /**
  * Constructs a NodeAccessControlHandler object.
  *
  * @param \Drupal\Core\Entity\EntityTypeInterface $entity_type
  *   The entity type definition.
  */
 public function __construct(EntityTypeInterface $entity_type) {
   parent::__construct($entity_type);
 }
开发者ID:housineali,项目名称:drpl8_dv,代码行数:9,代码来源:ProfileAccessControlHandler.php

示例9: __construct

 /**
  * Constructor
  *
  * @param \Drupal\Core\Entity\EntityTypeInterface $entity_type
  *   The entity info for the entity type.
  * @param \Drupal\Core\Extension\ModuleHandlerInterface $module_handler
  *   The module handler.
  */
 public function __construct(EntityTypeInterface $entity_type, ModuleHandlerInterface $module_handler)
 {
     parent::__construct($entity_type);
     $this->moduleHandler = $module_handler;
 }
开发者ID:nishantkumar155,项目名称:drupal8.crackle,代码行数:13,代码来源:CurrencyLocaleAccessControlHandler.php

示例10: __construct

 /**
  * Constructs a TranslatorAccessControlHandler object.
  *
  * @param \Drupal\Core\Entity\EntityTypeInterface $entity_type
  *   The entity type definition.
  * @param \Drupal\tmgmt\TranslatorManager $translator_manager
  *   The translator manager.
  */
 public function __construct(EntityTypeInterface $entity_type, TranslatorManager $translator_manager)
 {
     parent::__construct($entity_type);
     $this->translatorManager = $translator_manager;
 }
开发者ID:andrewl,项目名称:andrewlnet,代码行数:13,代码来源:TranslatorAccessControlHandler.php


注:本文中的Drupal\Core\Entity\EntityAccessControlHandler::__construct方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。