final class BlockContentEvents in Drupal 10
Same name and namespace in other branches
- 8 core/modules/block_content/src/BlockContentEvents.php \Drupal\block_content\BlockContentEvents
- 9 core/modules/block_content/src/BlockContentEvents.php \Drupal\block_content\BlockContentEvents
Defines events for the block_content module.
@internal
Hierarchy
- class \Drupal\block_content\BlockContentEvents
Expanded class hierarchy of BlockContentEvents
See also
\Drupal\block_content\Event\BlockContentGetDependencyEvent
1 file declares its use of BlockContentEvents
- SetInlineBlockDependency.php in core/
modules/ layout_builder/ src/ EventSubscriber/ SetInlineBlockDependency.php
File
- core/
modules/ block_content/ src/ BlockContentEvents.php, line 12
Namespace
Drupal\block_contentView source
final class BlockContentEvents {
/**
* 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.
*
* @Event
*
* @see \Drupal\block_content\Event\BlockContentGetDependencyEvent
* @see \Drupal\block_content\BlockContentAccessControlHandler::checkAccess()
*
* @var string
*/
const BLOCK_CONTENT_GET_DEPENDENCY = 'block_content.get_dependency';
}