public function PluginUIBase::access

Checks access for plugins of this type.

Return value

bool Returns TRUE if plugins of this type can be accessed.

1 method overrides PluginUIBase::access()
BlockPluginUI::access in drupal/core/modules/block/lib/Drupal/block/Plugin/PluginUI/BlockPluginUI.php
Overrides \Drupal\system\Plugin\PluginUIBase::access().

File

drupal/core/modules/system/lib/Drupal/system/Plugin/PluginUIBase.php, line 65
Contains \Drupal\system\Plugin\PluginUIBase.

Class

PluginUIBase
Provides defaults for creating user interfaces for plugins of a given type.

Namespace

Drupal\system\Plugin

Code

public function access() {
  $definition = $this
    ->getPluginDefinition();
  return call_user_func_array($definition['access_callback'], $definition['access_arguments']);
}