public function BlockPluginInterface::access

Indicates whether the block should be shown.

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

Return value

bool TRUE if the block should be shown, or FALSE otherwise.

See also

\Drupal\block\BlockAccessController

1 method overrides BlockPluginInterface::access()
BlockBase::access in drupal/core/modules/block/lib/Drupal/block/BlockBase.php
Indicates whether block-specific criteria allow access to the block.

File

drupal/core/modules/block/lib/Drupal/block/BlockPluginInterface.php, line 45
Contains \Drupal\block\BlockPluginInterface.

Class

BlockPluginInterface
Defines the required interface for all block plugins.

Namespace

Drupal\block

Code

public function access();