BlockContentForm::create

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

BlockContentForm::$entity

The block content entity. Type: \Drupal\block_content\BlockContentInterface Overrides EntityForm::$entity File core/modules/block_content/src/BlockContentForm.php, line 44 Class BlockContentForm Form handler for the custom block edit forms. Namespace Drupal\block_content Code protected $entity;

BlockContentForm::$blockContentStorage

The custom block storage. Type: \Drupal\Core\Entity\EntityStorageInterface File core/modules/block_content/src/BlockContentForm.php, line 23 Class BlockContentForm Form handler for the custom block edit forms. Namespace Drupal\block_content Code protected $blockContentStorage;

BlockContentForm

Form handler for the custom block edit forms. Hierarchy class \Drupal\Core\Form\FormBase implements ContainerInjectionInterface, FormInterface uses DependencySerializationTrait, LoggerChannelTrait, LinkGeneratorTrait, RedirectDestinationTrait, UrlGeneratorTrait, StringTranslationTraitclass \Drupal\Core\Entity\EntityForm implements EntityFormInterfaceclass \Drupal\Core\Entity\ContentEntityForm implements ContentEntityFormInterfaceclass \Drupal\block_content\BlockContentForm File core/modul

BlockContentDeleteForm

Provides a confirmation form for deleting a custom block entity. Hierarchy class \Drupal\Core\Form\FormBase implements ContainerInjectionInterface, FormInterface uses DependencySerializationTrait, LoggerChannelTrait, LinkGeneratorTrait, RedirectDestinationTrait, UrlGeneratorTrait, StringTranslationTraitclass \Drupal\Core\Entity\EntityForm implements EntityFormInterfaceclass \Drupal\Core\Entity\ContentEntityForm implements ContentEntityFormInterfaceclass \Drupal\Core\Entity\ContentEntityConfirmF

BlockContentDeleteForm::buildForm

public BlockContentDeleteForm::buildForm(array $form, FormStateInterface $form_state) Form constructor. Parameters array $form: An associative array containing the structure of the form. \Drupal\Core\Form\FormStateInterface $form_state: The current state of the form. Return value array The form structure. Overrides ContentEntityDeleteForm::buildForm File core/modules/block_content/src/Form/BlockContentDeleteForm.php, line 16 Class BlockContentDeleteForm Provides a confirmation form for d

BlockContentController::__construct

public BlockContentController::__construct(EntityStorageInterface $block_content_storage, EntityStorageInterface $block_content_type_storage, ThemeHandlerInterface $theme_handler) Constructs a BlockContent object. Parameters \Drupal\Core\Entity\EntityStorageInterface $block_content_storage: The custom block storage. \Drupal\Core\Entity\EntityStorageInterface $block_content_type_storage: The custom block type storage. \Drupal\Core\Extension\ThemeHandlerInterface $theme_handler: The theme handle

BlockContentController::getAddFormTitle

public BlockContentController::getAddFormTitle(BlockContentTypeInterface $block_content_type) Provides the page title for this controller. Parameters \Drupal\block_content\BlockContentTypeInterface $block_content_type: The custom block type being added. Return value string The page title. File core/modules/block_content/src/Controller/BlockContentController.php, line 125 Class BlockContentController Namespace Drupal\block_content\Controller Code public function getAddFormTitle(Block

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