BlockAddController::blockAddConfigureForm

public BlockAddController::blockAddConfigureForm($plugin_id, $theme) Build the block instance add form. Parameters string $plugin_id: The plugin ID for the block instance. string $theme: The name of the theme for the block instance. Return value array The block instance edit form. File core/modules/block/src/Controller/BlockAddController.php, line 23 Class BlockAddController Controller for building the block instance add form. Namespace Drupal\block\Controller Code public function bl

BlockAddController

Controller for building the block instance add form. Hierarchy class \Drupal\Core\Controller\ControllerBase implements ContainerInjectionInterface uses LoggerChannelTrait, LinkGeneratorTrait, RedirectDestinationTrait, UrlGeneratorTrait, StringTranslationTraitclass \Drupal\block\Controller\BlockAddController File core/modules/block/src/Controller/BlockAddController.php, line 10 Namespace Drupal\block\Controller Members Name Modifiers Type Description BlockAddController::blockA

BlockAccessControlHandler::__construct

public BlockAccessControlHandler::__construct(EntityTypeInterface $entity_type, ExecutableManagerInterface $manager, ContextHandlerInterface $context_handler, ContextRepositoryInterface $context_repository) Constructs the block access control handler instance Parameters \Drupal\Core\Entity\EntityTypeInterface $entity_type: The entity type definition. \Drupal\Core\Executable\ExecutableManagerInterface $manager: The ConditionManager for checking visibility of blocks. \Drupal\Core\Plugin\Context\

BlockAccessControlHandler::mergeCacheabilityFromConditions

protected BlockAccessControlHandler::mergeCacheabilityFromConditions(AccessResult $access, array $conditions) Merges cacheable metadata from conditions onto the access result object. Parameters \Drupal\Core\Access\AccessResult $access: The access result object. \Drupal\Core\Condition\ConditionInterface[] $conditions: List of visibility conditions. File core/modules/block/src/BlockAccessControlHandler.php, line 161 Class BlockAccessControlHandler Defines the access control handler for the

BlockAccessControlHandler::createInstance

public static BlockAccessControlHandler::createInstance(ContainerInterface $container, EntityTypeInterface $entity_type) Instantiates a new instance of this entity handler. This is a factory method that returns a new instance of this object. The factory should pass any needed dependencies into the constructor of this object, but not the container itself. Every call to this method must return a new instance of this object; that is, it may not implement a singleton. Parameters \Symfony\Component

BlockAccessControlHandler::checkAccess

protected BlockAccessControlHandler::checkAccess(EntityInterface $entity, $operation, AccountInterface $account) Performs access checks. This method is supposed to be overwritten by extending classes that do their own custom access checking. Parameters \Drupal\Core\Entity\EntityInterface $entity: The entity for which to check access. string $operation: The entity operation. Usually one of 'view', 'view label', 'update' or 'delete'. \Drupal\Core\Session\AccountInterface $account: The user for w

BlockAccessControlHandler::$manager

The condition plugin manager. Type: \Drupal\Core\Executable\ExecutableManagerInterface File core/modules/block/src/BlockAccessControlHandler.php, line 35 Class BlockAccessControlHandler Defines the access control handler for the block entity type. Namespace Drupal\block Code protected $manager;

BlockAccessControlHandler::$contextRepository

The context manager service. Type: \Drupal\Core\Plugin\Context\ContextRepositoryInterface File core/modules/block/src/BlockAccessControlHandler.php, line 49 Class BlockAccessControlHandler Defines the access control handler for the block entity type. Namespace Drupal\block Code protected $contextRepository;

BlockAccessControlHandler::$contextHandler

The plugin context handler. Type: \Drupal\Core\Plugin\Context\ContextHandlerInterface File core/modules/block/src/BlockAccessControlHandler.php, line 42 Class BlockAccessControlHandler Defines the access control handler for the block entity type. Namespace Drupal\block Code protected $contextHandler;

BlockAccessControlHandler

Defines the access control handler for the block entity type. Hierarchy class \Drupal\Core\Entity\EntityHandlerBase uses DependencySerializationTrait, StringTranslationTraitclass \Drupal\Core\Entity\EntityAccessControlHandler implements EntityAccessControlHandlerInterfaceclass \Drupal\block\BlockAccessControlHandler implements EntityHandlerInterface uses ConditionAccessResolverTrait See also \Drupal\block\Entity\Block File core/modules/block/src/BlockAccessControlHandler.php, line 26 N