BlockContentType::shouldCreateNewRevision

public BlockContentType::shouldCreateNewRevision() Returns whether a new revision should be created by default. Return value bool TRUE if a new revision should be created by default. Overrides BlockContentTypeInterface::shouldCreateNewRevision File core/modules/block_content/src/Entity/BlockContentType.php, line 83 Class BlockContentType Defines the custom block type entity. Namespace Drupal\block_content\Entity Code public function shouldCreateNewRevision() { return $this->revis

BlockContentType::getDescription

public BlockContentType::getDescription() Returns the description of the block type. Return value string The description of the type of this block. Overrides BlockContentTypeInterface::getDescription File core/modules/block_content/src/Entity/BlockContentType.php, line 76 Class BlockContentType Defines the custom block type entity. Namespace Drupal\block_content\Entity Code public function getDescription() { return $this->description; }

BlockContentType::$revision

The default revision setting for custom blocks of this type. Type: bool File core/modules/block_content/src/Entity/BlockContentType.php, line 64 Class BlockContentType Defines the custom block type entity. Namespace Drupal\block_content\Entity Code protected $revision;

BlockContentType::$label

The custom block type label. Type: string File core/modules/block_content/src/Entity/BlockContentType.php, line 57 Class BlockContentType Defines the custom block type entity. Namespace Drupal\block_content\Entity Code protected $label;

BlockContentType::$id

The custom block type ID. Type: string File core/modules/block_content/src/Entity/BlockContentType.php, line 50 Class BlockContentType Defines the custom block type entity. Namespace Drupal\block_content\Entity Code protected $id;

BlockContentType::$description

The description of the block type. Type: string File core/modules/block_content/src/Entity/BlockContentType.php, line 71 Class BlockContentType Defines the custom block type entity. Namespace Drupal\block_content\Entity Code protected $description;

BlockContentType

Defines the custom block type entity. Plugin annotation @ConfigEntityType( id = "block_content_type", label = @Translation("Custom block type"), handlers = { "form" = { "default" = "Drupal\block_content\BlockContentTypeForm", "add" = "Drupal\block_content\BlockContentTypeForm", "edit" = "Drupal\block_content\BlockContentTypeForm", "delete" = "Drupal\block_content\Form\BlockContentTypeDeleteForm" }, "list_builder" = "Drupal\block_content\BlockContentType

BlockContentTranslationHandler::entityFormTitle

protected BlockContentTranslationHandler::entityFormTitle(EntityInterface $entity) Returns the title to be used for the entity form page. Parameters \Drupal\Core\Entity\EntityInterface $entity: The entity whose form is being altered. Return value string|null The label of the entity, or NULL if there is no label defined. Overrides ContentTranslationHandler::entityFormTitle File core/modules/block_content/src/BlockContentTranslationHandler.php, line 35 Class BlockContentTranslationHandler

BlockContentTranslationHandler::entityFormAlter

public BlockContentTranslationHandler::entityFormAlter(array &$form, FormStateInterface $form_state, EntityInterface $entity) Performs the needed alterations to the entity form. Parameters array $form: The entity form to be altered to provide the translation workflow. \Drupal\Core\Form\FormStateInterface $form_state: The current state of the form. \Drupal\Core\Entity\EntityInterface $entity: The entity being created or edited. Overrides ContentTranslationHandler::entityFormAlter File core/

BlockContentTranslationHandler

Defines the translation handler for custom blocks. Hierarchy class \Drupal\content_translation\ContentTranslationHandler implements ContentTranslationHandlerInterface, EntityHandlerInterface uses DependencySerializationTraitclass \Drupal\block_content\BlockContentTranslationHandler File core/modules/block_content/src/BlockContentTranslationHandler.php, line 13 Namespace Drupal\block_content Members Name Modifiers Type Description BlockContentTranslationHandler::entityFormAlte