public function BlockPluginUI::access

Overrides \Drupal\system\Plugin\PluginUIBase::access().

Overrides PluginUIBase::access

File

drupal/core/modules/block/lib/Drupal/block/Plugin/PluginUI/BlockPluginUI.php, line 128

Class

BlockPluginUI
Defines an overrideable UI for block selection, configuration, and placement.

Namespace

Drupal\block\Plugin\PluginUI

Code

public function access() {
  list($plugin, $theme) = explode(':', $this
    ->getPluginId());
  return _block_themes_access($theme);
}