BlockContentViewBuilder::view

public BlockContentViewBuilder::view(EntityInterface $entity, $view_mode = 'full', $langcode = NULL) Builds the render array for the provided entity. Parameters \Drupal\Core\Entity\EntityInterface $entity: The entity to render. string $view_mode: (optional) The view mode that should be used to render the entity. string $langcode: (optional) For which language the entity should be rendered, defaults to the current content language. Return value array A render array for the entity. Throws \Inv

BlockContentViewBuilder::getBuildDefaults

protected BlockContentViewBuilder::getBuildDefaults(EntityInterface $entity, $view_mode) Provides entity-specific defaults to the build process. Parameters \Drupal\Core\Entity\EntityInterface $entity: The entity for which the defaults should be provided. string $view_mode: The view mode that should be used. Return value array Overrides EntityViewBuilder::getBuildDefaults File core/modules/block_content/src/BlockContentViewBuilder.php, line 36 Class BlockContentViewBuilder View builder ha

BlockContentViewBuilder::alterBuild

protected BlockContentViewBuilder::alterBuild(array &$build, EntityInterface $entity, EntityViewDisplayInterface $display, $view_mode) Specific per-entity building. Parameters array $build: The render array that is being created. \Drupal\Core\Entity\EntityInterface $entity: The entity to be prepared. \Drupal\Core\Entity\Display\EntityViewDisplayInterface $display: The entity view display holding the display options configured for the entity components. string $view_mode: The view mode that

BlockContentViewBuilder

View builder handler for custom blocks. Hierarchy class \Drupal\Core\Entity\EntityHandlerBase uses DependencySerializationTrait, StringTranslationTraitclass \Drupal\Core\Entity\EntityViewBuilder implements EntityHandlerInterface, EntityViewBuilderInterfaceclass \Drupal\block_content\BlockContentViewBuilder File core/modules/block_content/src/BlockContentViewBuilder.php, line 12 Namespace Drupal\block_content Members Name Modifiers Type Description BlockContentViewBuilder::al

BlockContentTypeListBuilder::getTitle

protected BlockContentTypeListBuilder::getTitle() Gets the title of the page. Return value string A string title of the page. Overrides EntityListBuilder::getTitle File core/modules/block_content/src/BlockContentTypeListBuilder.php, line 49 Class BlockContentTypeListBuilder Defines a class to build a listing of custom block type entities. Namespace Drupal\block_content Code protected function getTitle() { return $this->t('Custom block types'); }

BlockContentTypeListBuilder::getDefaultOperations

public BlockContentTypeListBuilder::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 ConfigEntityListBuilder::getDefaultOperations File core/modules/block_content/src/BlockContentTypeListBuilder.php, line 18 Class BlockContentTypeListBuilder Defines a class t

BlockContentTypeListBuilder::buildRow

public BlockContentTypeListBuilder::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/BlockContentTypeListBuilder.php, line 40 Class BlockContentTypeListBuilder D

BlockContentTypeListBuilder::buildHeader

public BlockContentTypeListBuilder::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/BlockContentTypeListBuilder.php, line 31 Class BlockContentTypeListBuilder Defines a class to build a listing of custom block type entities. Namespace Drupal\block_content Code public function bu

BlockContentTypeListBuilder

Defines a class to build a listing of custom block type entities. Hierarchy class \Drupal\Core\Entity\EntityHandlerBase uses DependencySerializationTrait, StringTranslationTraitclass \Drupal\Core\Entity\EntityListBuilder implements EntityHandlerInterface, EntityListBuilderInterfaceclass \Drupal\Core\Config\Entity\ConfigEntityListBuilderclass \Drupal\block_content\BlockContentTypeListBuilder See also \Drupal\block_content\Entity\BlockContentType File core/modules/block_content/src/BlockCo

BlockContentTypeInterface::shouldCreateNewRevision

public BlockContentTypeInterface::shouldCreateNewRevision() Returns whether a new revision should be created by default. Return value bool TRUE if a new revision should be created by default. File core/modules/block_content/src/BlockContentTypeInterface.php, line 26 Class BlockContentTypeInterface Provides an interface defining a custom block type entity. Namespace Drupal\block_content Code public function shouldCreateNewRevision();