class BlockContent
Same name in other branches
- 4.0.x modules/ctools_entity_mask/tests/modules/entity_mask_test/src/Entity/BlockContent.php \Drupal\entity_mask_test\Entity\BlockContent
Provides a masked version of BlockContent.
@todo Investigate a better way to copy the upstream properties instead of manually duplicating them.
Plugin annotation
@ContentEntityType(
id = "fake_block_content",
label = @Translation("Custom block"),
bundle_label = @Translation("Custom block type"),
handlers = {
"storage" = "Drupal\Core\Entity\Sql\SqlContentEntityStorage",
"access" = "Drupal\block_content\BlockContentAccessControlHandler",
"list_builder" = "Drupal\block_content\BlockContentListBuilder",
"view_builder" = "Drupal\block_content\BlockContentViewBuilder",
"views_data" = "Drupal\block_content\BlockContentViewsData",
"form" = {
"add" = "Drupal\block_content\BlockContentForm",
"edit" = "Drupal\block_content\BlockContentForm",
"delete" = "Drupal\block_content\Form\BlockContentDeleteForm",
"default" = "Drupal\block_content\BlockContentForm"
},
"translation" = "Drupal\block_content\BlockContentTranslationHandler"
},
admin_permission = "administer blocks",
base_table = "block_content",
revision_table = "block_content_revision",
data_table = "block_content_field_data",
revision_data_table = "block_content_field_revision",
show_revision_ui = TRUE,
links = {
"canonical" = "/block/{block_content}",
"delete-form" = "/block/{block_content}/delete",
"edit-form" = "/block/{block_content}",
"collection" = "/admin/structure/block/block-content",
"create" = "/block",
},
translatable = TRUE,
entity_keys = {
"id" = "id",
"revision" = "revision_id",
"bundle" = "type",
"label" = "info",
"langcode" = "langcode",
"uuid" = "uuid",
"published" = "status",
},
revision_metadata_keys = {
"revision_user" = "revision_user",
"revision_created" = "revision_created",
"revision_log_message" = "revision_log"
},
bundle_entity_type = "block_content_type",
field_ui_base_route = "entity.block_content_type.edit_form",
render_cache = FALSE,
mask = "block_content",
)
Hierarchy
- class \Drupal\Core\Entity\EntityBase implements \Drupal\Core\Entity\EntityInterface uses \Drupal\Core\Cache\RefinableCacheableDependencyTrait, \Drupal\Core\DependencyInjection\DependencySerializationTrait
- class \Drupal\Core\Entity\ContentEntityBase extends \Drupal\Core\Entity\EntityBase implements \Drupal\Core\Entity\IteratorAggregate, \Drupal\Core\Entity\ContentEntityInterface, \Drupal\Core\TypedData\TranslationStatusInterface uses \Drupal\Core\Entity\EntityChangesDetectionTrait, \Drupal\Core\Entity\SynchronizableEntityTrait
- class \Drupal\Core\Entity\EditorialContentEntityBase extends \Drupal\Core\Entity\ContentEntityBase implements \Drupal\Core\Entity\EntityChangedInterface, \Drupal\Core\Entity\EntityPublishedInterface, \Drupal\Core\Entity\RevisionLogInterface uses \Drupal\Core\Entity\EntityChangedTrait, \Drupal\Core\Entity\EntityPublishedTrait, \Drupal\Core\Entity\RevisionLogEntityTrait
- class \Drupal\block_content\Entity\BlockContent extends \Drupal\Core\Entity\EditorialContentEntityBase implements \Drupal\block_content\BlockContentInterface uses \Drupal\block_content\Access\RefinableDependentAccessTrait
- class \Drupal\entity_mask_test\Entity\BlockContent extends \Drupal\block_content\Entity\BlockContent uses \Drupal\ctools_entity_mask\MaskEntityTrait
- class \Drupal\block_content\Entity\BlockContent extends \Drupal\Core\Entity\EditorialContentEntityBase implements \Drupal\block_content\BlockContentInterface uses \Drupal\block_content\Access\RefinableDependentAccessTrait
- class \Drupal\Core\Entity\EditorialContentEntityBase extends \Drupal\Core\Entity\ContentEntityBase implements \Drupal\Core\Entity\EntityChangedInterface, \Drupal\Core\Entity\EntityPublishedInterface, \Drupal\Core\Entity\RevisionLogInterface uses \Drupal\Core\Entity\EntityChangedTrait, \Drupal\Core\Entity\EntityPublishedTrait, \Drupal\Core\Entity\RevisionLogEntityTrait
- class \Drupal\Core\Entity\ContentEntityBase extends \Drupal\Core\Entity\EntityBase implements \Drupal\Core\Entity\IteratorAggregate, \Drupal\Core\Entity\ContentEntityInterface, \Drupal\Core\TypedData\TranslationStatusInterface uses \Drupal\Core\Entity\EntityChangesDetectionTrait, \Drupal\Core\Entity\SynchronizableEntityTrait
Expanded class hierarchy of BlockContent
2 files declare their use of BlockContent
- DisplayTest.php in modules/
ctools_entity_mask/ tests/ src/ Functional/ DisplayTest.php - EntityMaskTest.php in modules/
ctools_entity_mask/ tests/ src/ Kernel/ EntityMaskTest.php
File
-
modules/
ctools_entity_mask/ tests/ modules/ entity_mask_test/ src/ Entity/ BlockContent.php, line 66
Namespace
Drupal\entity_mask_test\EntityView source
class BlockContent extends BaseBlockContent {
use MaskEntityTrait;
}