當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。