BlockContentGetDependencyEvent
class BlockContentGetDependencyEvent extends Event (View source)
| internal |
Block content event to allow setting an access dependency.
Properties
| protected BlockContentInterface | $blockContent | The block content entity. |
|
| protected AccessibleInterface | $accessDependency | The dependency. |
Methods
getBlockContentEntity()
Gets the block content entity.
getAccessDependency()
Gets the access dependency.
Details
__construct(BlockContentInterface $blockContent)
BlockContentGetDependencyEvent constructor.
BlockContentInterface
getBlockContentEntity()
Gets the block content entity.
AccessibleInterface
getAccessDependency()
Gets the access dependency.
setAccessDependency(AccessibleInterface $access_dependency)
Sets the access dependency.