BlockContentModerationHandler

Customizations for block content entities. Hierarchy class \Drupal\content_moderation\Entity\Handler\ModerationHandler implements ModerationHandlerInterface, EntityHandlerInterface uses StringTranslationTraitclass \Drupal\content_moderation\Entity\Handler\BlockContentModerationHandler File core/modules/content_moderation/src/Entity/Handler/BlockContentModerationHandler.php, line 10 Namespace Drupal\content_moderation\Entity\Handler Members Name Modifiers Type Description Bloc

BlockContentModerationHandler::enforceRevisionsEntityFormAlter

public BlockContentModerationHandler::enforceRevisionsEntityFormAlter(array &$form, FormStateInterface $form_state, $form_id) Alters entity forms to enforce revision handling. Parameters array $form: An associative array containing the structure of the form. \Drupal\Core\Form\FormStateInterface $form_state: The current state of the form. string $form_id: The form id. Overrides ModerationHandler::enforceRevisionsEntityFormAlter See also hook_form_alter() File core/modules/content_moderatio

BlockContentModerationHandler::enforceRevisionsBundleFormAlter

public BlockContentModerationHandler::enforceRevisionsBundleFormAlter(array &$form, FormStateInterface $form_state, $form_id) Alters bundle forms to enforce revision handling. Parameters array $form: An associative array containing the structure of the form. \Drupal\Core\Form\FormStateInterface $form_state: The current state of the form. string $form_id: The form id. Overrides ModerationHandler::enforceRevisionsBundleFormAlter See also hook_form_alter() File core/modules/content_moderatio

BlockContentListBuilder

Defines a class to build a listing of custom block entities. Hierarchy class \Drupal\Core\Entity\EntityHandlerBase uses DependencySerializationTrait, StringTranslationTraitclass \Drupal\Core\Entity\EntityListBuilder implements EntityHandlerInterface, EntityListBuilderInterfaceclass \Drupal\block_content\BlockContentListBuilder See also \Drupal\block_content\Entity\BlockContent File core/modules/block_content/src/BlockContentListBuilder.php, line 13 Namespace Drupal\block_content Mem

BlockContentListBuilder::buildHeader

public BlockContentListBuilder::buildHeader() Builds the header row for the entity listing. Return value array A render array structure of header strings. Overrides EntityListBuilder::buildHeader See also \Drupal\Core\Entity\EntityListBuilder::render() File core/modules/block_content/src/BlockContentListBuilder.php, line 18 Class BlockContentListBuilder Defines a class to build a listing of custom block entities. Namespace Drupal\block_content Code public function buildHeader() { $

BlockContentListBuilder::buildRow

public BlockContentListBuilder::buildRow(EntityInterface $entity) Builds a row for an entity in the entity listing. Parameters \Drupal\Core\Entity\EntityInterface $entity: The entity for this row of the list. Return value array A render array structure of fields for this entity. Overrides EntityListBuilder::buildRow See also \Drupal\Core\Entity\EntityListBuilder::render() File core/modules/block_content/src/BlockContentListBuilder.php, line 26 Class BlockContentListBuilder Defines a cla

BlockContentListBuilder::getDefaultOperations

public BlockContentListBuilder::getDefaultOperations(EntityInterface $entity) Gets this list's default operations. Parameters \Drupal\Core\Entity\EntityInterface $entity: The entity the operations are for. Return value array The array structure is identical to the return value of self::getOperations(). Overrides EntityListBuilder::getDefaultOperations File core/modules/block_content/src/BlockContentListBuilder.php, line 34 Class BlockContentListBuilder Defines a class to build a listing

BlockContentInterface::setInfo

public BlockContentInterface::setInfo($info) Sets the block description. Parameters string $info: The block description. Return value \Drupal\block_content\BlockContentInterface The class instance that this method is called on. File core/modules/block_content/src/BlockContentInterface.php, line 34 Class BlockContentInterface Provides an interface defining a custom block entity. Namespace Drupal\block_content Code public function setInfo($info);

BlockContentInterface::setTheme

public BlockContentInterface::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. File core/modules/block_content/src/BlockContentInterfa

BlockContentInterface::setRevisionLog

public BlockContentInterface::setRevisionLog($revision_log) Sets the block revision log message. Parameters string $revision_log: The revision log message. Return value \Drupal\block_content\BlockContentInterface The class instance that this method is called on. Deprecated in Drupal 8.2.0, will be removed before Drupal 9.0.0. Use \Drupal\Core\Entity\RevisionLogInterface::setRevisionLogMessage() instead. File core/modules/block_content/src/BlockContentInterface.php, line 48 Class BlockC