BlockContentController::addForm

public BlockContentController::addForm(BlockContentTypeInterface $block_content_type, Request $request) Presents the custom block creation form. Parameters \Drupal\block_content\BlockContentTypeInterface $block_content_type: The custom block type to add. \Symfony\Component\HttpFoundation\Request $request: The current request object. Return value array A form array as expected by drupal_render(). File core/modules/block_content/src/Controller/BlockContentController.php, line 103 Class Bloc

BlockContentController::add

public BlockContentController::add(Request $request) Displays add custom block links for available types. Parameters \Symfony\Component\HttpFoundation\Request $request: The current request object. Return value array A render array for a list of the custom block types that can be added or if there is only one custom block type defined for the site, the function returns the custom block add page for that custom block type. File core/modules/block_content/src/Controller/BlockContentController.ph

BlockContentController

Hierarchy class \Drupal\Core\Controller\ControllerBase implements ContainerInjectionInterface uses LoggerChannelTrait, LinkGeneratorTrait, RedirectDestinationTrait, UrlGeneratorTrait, StringTranslationTraitclass \Drupal\block_content\Controller\BlockContentController File core/modules/block_content/src/Controller/BlockContentController.php, line 13 Namespace Drupal\block_content\Controller Members Name Modifiers Type Description BlockContentController::$blockContentStorage

BlockContentController::$blockContentTypeStorage

The custom block type storage. Type: \Drupal\Core\Entity\EntityStorageInterface File core/modules/block_content/src/Controller/BlockContentController.php, line 27 Class BlockContentController Namespace Drupal\block_content\Controller Code protected $blockContentTypeStorage;

BlockContentController::$blockContentStorage

The custom block storage. Type: \Drupal\Core\Entity\EntityStorageInterface File core/modules/block_content/src/Controller/BlockContentController.php, line 20 Class BlockContentController Namespace Drupal\block_content\Controller Code protected $blockContentStorage;

BlockContentAccessControlHandler::checkAccess

protected BlockContentAccessControlHandler::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 use

BlockContentAccessControlHandler

Defines the access control handler for the custom block entity type. Hierarchy class \Drupal\Core\Entity\EntityHandlerBase uses DependencySerializationTrait, StringTranslationTraitclass \Drupal\Core\Entity\EntityAccessControlHandler implements EntityAccessControlHandlerInterfaceclass \Drupal\block_content\BlockContentAccessControlHandler See also \Drupal\block_content\Entity\BlockContent File core/modules/block_content/src/BlockContentAccessControlHandler.php, line 15 Namespace Drupal

BlockContent::setRevisionUserId

public BlockContent::setRevisionUserId($user_id) Sets the entity revision author by ID. Parameters int $user_id: The user ID of the revision author. Return value $this Overrides RevisionLogInterface::setRevisionUserId File core/modules/block_content/src/Entity/BlockContent.php, line 273 Class BlockContent Defines the custom block entity class. Namespace Drupal\block_content\Entity Code public function setRevisionUserId($user_id) { $this->set('revision_user', $user_id); return

BlockContent::setRevisionUser

public BlockContent::setRevisionUser(UserInterface $account) Sets the entity revision author. Parameters \Drupal\user\UserInterface $account: The user account of the revision author. Return value $this Overrides RevisionLogInterface::setRevisionUser File core/modules/block_content/src/Entity/BlockContent.php, line 258 Class BlockContent Defines the custom block entity class. Namespace Drupal\block_content\Entity Code public function setRevisionUser(UserInterface $account) { $this-&

BlockContent::setTheme

public BlockContent::setTheme($theme) Sets the theme value. When creating a new block content block from the block library, the user is redirected to the configure form for that block in the given theme. The theme is stored against the block when the block content add form is shown. Parameters string $theme: The theme name. Return value \Drupal\block_content\BlockContentInterface The class instance that this method is called on. Overrides BlockContentInterface::setTheme File core/modules/bloc