Mercurial > hg > isophonics-drupal-site
diff core/modules/block_content/src/BlockContentEvents.php @ 17:129ea1e6d783
Update, including to Drupal core 8.6.10
author | Chris Cannam |
---|---|
date | Thu, 28 Feb 2019 13:21:36 +0000 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/core/modules/block_content/src/BlockContentEvents.php Thu Feb 28 13:21:36 2019 +0000 @@ -0,0 +1,31 @@ +<?php + +namespace Drupal\block_content; + +/** + * Defines events for the block_content module. + * + * @see \Drupal\block_content\Event\BlockContentGetDependencyEvent + * + * @internal + */ +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'; + +}