You are here

public function EntityEmbedDisplayInterface::access in Entity Embed 8

Indicates whether this Entity Embed display can be used.

This method allows base implementations to add general access restrictions that should apply to all extending Entity Embed display plugins.

Parameters

\Drupal\Core\Session\AccountInterface $account: (optional) The user for which to check access, or NULL to check access for the current user. Defaults to NULL.

Return value

\Drupal\Core\Access\AccessResultInterface The access result.

2 methods override EntityEmbedDisplayInterface::access()
EntityEmbedDisplayBase::access in src/EntityEmbedDisplay/EntityEmbedDisplayBase.php
Indicates whether this Entity Embed display can be used.
MediaImageDecorator::access in src/Plugin/entity_embed/EntityEmbedDisplay/MediaImageDecorator.php
Indicates whether this Entity Embed display can be used.

File

src/EntityEmbedDisplay/EntityEmbedDisplayInterface.php, line 60

Class

EntityEmbedDisplayInterface
Defines the interface for Entity Embed Display plugins.

Namespace

Drupal\entity_embed\EntityEmbedDisplay

Code

public function access(AccountInterface $account = NULL);