BlockContentInterface::getTheme

public BlockContentInterface::getTheme() Gets 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. Return value string The theme name. File core/modules/block_content/src/BlockContentInterface.php, line 75 Class BlockContentInterface Provides an interface defining a custom block entity. Namespace Drup

BlockContentInterface::getRevisionLog

public BlockContentInterface::getRevisionLog() Returns the block revision log message. Return value string The revision log message. Deprecated in Drupal 8.2.0, will be removed before Drupal 9.0.0. Use \Drupal\Core\Entity\RevisionLogInterface::getRevisionLogMessage() instead. File core/modules/block_content/src/BlockContentInterface.php, line 23 Class BlockContentInterface Provides an interface defining a custom block entity. Namespace Drupal\block_content Code public function getR

BlockContentInterface::getInstances

public BlockContentInterface::getInstances() Gets the configured instances of this custom block. Return value array Array of Drupal\block\Core\Plugin\Entity\Block entities. File core/modules/block_content/src/BlockContentInterface.php, line 83 Class BlockContentInterface Provides an interface defining a custom block entity. Namespace Drupal\block_content Code public function getInstances();

BlockContentInterface

Provides an interface defining a custom block entity. Hierarchy interface \Drupal\Core\Entity\ContentEntityInterface extends \Traversable; interface \Drupal\Core\Entity\EntityChangedInterface; interface \Drupal\Core\Entity\RevisionLogInterfaceinterface \Drupal\block_content\BlockContentInterface File core/modules/block_content/src/BlockContentInterface.php, line 12 Namespace Drupal\block_content Members Name Modifiers Type Description AccessibleInterface::access public fu

BlockContentForm::__construct

public BlockContentForm::__construct(EntityManagerInterface $entity_manager, EntityStorageInterface $block_content_storage, EntityStorageInterface $block_content_type_storage, LanguageManagerInterface $language_manager) Constructs a BlockContentForm object. Parameters \Drupal\Core\Entity\EntityManagerInterface $entity_manager: The entity manager. \Drupal\Core\Entity\EntityStorageInterface $block_content_storage: The custom block storage. \Drupal\Core\Entity\EntityStorageInterface $block_conten

BlockContentForm::save

public BlockContentForm::save(array $form, FormStateInterface $form_state) Form submission handler for the 'save' action. Normally this method should be overridden to provide specific messages to the user and redirect the form after the entity has been saved. 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 int Either SAVED_NEW or SAVED_UPDATED, depending on the oper

BlockContentForm::prepareEntity

protected BlockContentForm::prepareEntity() Overrides \Drupal\Core\Entity\EntityForm::prepareEntity(). Prepares the custom block object. Fills in a few default values, and then invokes hook_block_content_prepare() on all modules. Overrides EntityForm::prepareEntity File core/modules/block_content/src/BlockContentForm.php, line 86 Class BlockContentForm Form handler for the custom block edit forms. Namespace Drupal\block_content Code protected function prepareEntity() { $block = $this

BlockContentForm::form

public BlockContentForm::form(array $form, FormStateInterface $form_state) Gets the actual form array to be built. Overrides ContentEntityForm::form See also \Drupal\Core\Entity\EntityForm::processForm() \Drupal\Core\Entity\EntityForm::afterBuild() File core/modules/block_content/src/BlockContentForm.php, line 100 Class BlockContentForm Form handler for the custom block edit forms. Namespace Drupal\block_content Code public function form(array $form, FormStateInterface $form_state) {

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::$languageManager

The language manager. Type: \Drupal\Core\Language\LanguageManagerInterface File core/modules/block_content/src/BlockContentForm.php, line 37 Class BlockContentForm Form handler for the custom block edit forms. Namespace Drupal\block_content Code protected $languageManager;