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

__construct(BlockContentInterface $blockContent)

BlockContentGetDependencyEvent constructor.

getBlockContentEntity()

Gets the block content entity.

getAccessDependency()

Gets the access dependency.

setAccessDependency(AccessibleInterface $access_dependency)

Sets the access dependency.

Details

__construct(BlockContentInterface $blockContent)

BlockContentGetDependencyEvent constructor.

Parameters

BlockContentInterface $blockContent

The block content entity.

BlockContentInterface getBlockContentEntity()

Gets the block content entity.

Return Value

BlockContentInterface

The block content entity.

AccessibleInterface getAccessDependency()

Gets the access dependency.

Return Value

AccessibleInterface

The access dependency.

setAccessDependency(AccessibleInterface $access_dependency)

Sets the access dependency.

Parameters

AccessibleInterface $access_dependency

The access dependency.