Mercurial > hg > isophonics-drupal-site
annotate core/modules/block_content/src/BlockContentEvents.php @ 19:fa3358dc1485 tip
Add ndrum files
author | Chris Cannam |
---|---|
date | Wed, 28 Aug 2019 13:14:47 +0100 |
parents | 129ea1e6d783 |
children |
rev | line source |
---|---|
Chris@17 | 1 <?php |
Chris@17 | 2 |
Chris@17 | 3 namespace Drupal\block_content; |
Chris@17 | 4 |
Chris@17 | 5 /** |
Chris@17 | 6 * Defines events for the block_content module. |
Chris@17 | 7 * |
Chris@17 | 8 * @see \Drupal\block_content\Event\BlockContentGetDependencyEvent |
Chris@17 | 9 * |
Chris@17 | 10 * @internal |
Chris@17 | 11 */ |
Chris@17 | 12 final class BlockContentEvents { |
Chris@17 | 13 |
Chris@17 | 14 /** |
Chris@17 | 15 * Name of the event when getting the dependency of a non-reusable block. |
Chris@17 | 16 * |
Chris@17 | 17 * This event allows modules to provide a dependency for non-reusable block |
Chris@17 | 18 * access if |
Chris@17 | 19 * \Drupal\block_content\Access\DependentAccessInterface::getAccessDependency() |
Chris@17 | 20 * did not return a dependency during access checking. |
Chris@17 | 21 * |
Chris@17 | 22 * @Event |
Chris@17 | 23 * |
Chris@17 | 24 * @see \Drupal\block_content\Event\BlockContentGetDependencyEvent |
Chris@17 | 25 * @see \Drupal\block_content\BlockContentAccessControlHandler::checkAccess() |
Chris@17 | 26 * |
Chris@17 | 27 * @var string |
Chris@17 | 28 */ |
Chris@17 | 29 const BLOCK_CONTENT_GET_DEPENDENCY = 'block_content.get_dependency'; |
Chris@17 | 30 |
Chris@17 | 31 } |