BlockContentEvents::BLOCK_CONTENT_GET_DEPENDENCY

Same name in other branches
  1. 9 core/modules/block_content/src/BlockContentEvents.php \Drupal\block_content\BlockContentEvents::BLOCK_CONTENT_GET_DEPENDENCY
  2. 10 core/modules/block_content/src/BlockContentEvents.php \Drupal\block_content\BlockContentEvents::BLOCK_CONTENT_GET_DEPENDENCY
  3. 11.x core/modules/block_content/src/BlockContentEvents.php \Drupal\block_content\BlockContentEvents::BLOCK_CONTENT_GET_DEPENDENCY

Name of the event when getting the dependency of a non-reusable block.

This event allows modules to provide a dependency for non-reusable block access if \Drupal\block_content\Access\DependentAccessInterface::getAccessDependency() did not return a dependency during access checking.

See also

\Drupal\block_content\Event\BlockContentGetDependencyEvent

\Drupal\block_content\BlockContentAccessControlHandler::checkAccess()

Related topics

File

core/modules/block_content/src/BlockContentEvents.php, line 29

Class

BlockContentEvents
Defines events for the block_content module.

Namespace

Drupal\block_content

Code

const BLOCK_CONTENT_GET_DEPENDENCY = 'block_content.get_dependency';

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.