Search for content

  1. Search 7.x for content
  2. Search 9.5.x for content
  3. Search 10.3.x for content
  4. Search 11.x for content
  5. Other projects
Title Object type File name Summary
BlockPageVariant::setMainContent function core/modules/block/src/Plugin/DisplayVariant/BlockPageVariant.php Sets the main content for the page being rendered.
BlockPageVariantTest::testBuildWithoutMainContent function core/modules/block/tests/src/Unit/Plugin/DisplayVariant/BlockPageVariantTest.php Tests the building of a full page variant with no main content set.
BlockPluginId::$blockContentStorage property core/modules/block/src/Plugin/migrate/process/BlockPluginId.php The block_content entity storage handler.
BlockRenderAlterContent class core/modules/block/tests/modules/block_test/src/BlockRenderAlterContent.php Implements a trusted preRender callback.
BlockRenderAlterContent.php file core/modules/block/tests/modules/block_test/src/BlockRenderAlterContent.php
BlockRenderAlterContent::preRender function core/modules/block/tests/modules/block_test/src/BlockRenderAlterContent.php #pre_render callback for a block to alter its content.
BlockXssTest::doBlockContentTest function core/modules/block/tests/src/Functional/BlockXssTest.php Tests XSS coming from Block Content block info.
block_content.add.html.twig file core/modules/help_topics/help_topics/block_content.add.html.twig ---
label: 'Creating a custom block'
related:
- block.overview
- block.configure
- block.place
- block_content.type
---
{% set content_url = render_var(url('entity.block_content.collection')) %}
<h2>{% trans %}Goal{%…
block_content.info.yml file core/modules/block_content/block_content.info.yml core/modules/block_content/block_content.info.yml
block_content.install file core/modules/block_content/block_content.install Install, update and uninstall functions for the block_content module.
block_content.libraries.yml file core/modules/block_content/block_content.libraries.yml core/modules/block_content/block_content.libraries.yml
block_content.links.action.yml file core/modules/block_content/block_content.links.action.yml core/modules/block_content/block_content.links.action.yml
block_content.links.contextual.yml file core/modules/block_content/block_content.links.contextual.yml core/modules/block_content/block_content.links.contextual.yml
block_content.links.task.yml file core/modules/block_content/block_content.links.task.yml core/modules/block_content/block_content.links.task.yml
block_content.migrate_drupal.yml file core/modules/block_content/migrations/state/block_content.migrate_drupal.yml core/modules/block_content/migrations/state/block_content.migrate_drupal.yml
block_content.module file core/modules/block_content/block_content.module Allows the creation of custom blocks through the user interface.
block_content.pages.inc file core/modules/block_content/block_content.pages.inc Provides page callbacks for custom blocks.
block_content.post_update.php file core/modules/block_content/block_content.post_update.php Post update functions for Custom Block.
block_content.routing.yml file core/modules/block_content/block_content.routing.yml core/modules/block_content/block_content.routing.yml
block_content.schema.yml file core/modules/block_content/config/schema/block_content.schema.yml core/modules/block_content/config/schema/block_content.schema.yml
block_content.services.yml file core/modules/block_content/block_content.services.yml core/modules/block_content/block_content.services.yml
block_content.type.banner_block.yml file core/profiles/demo_umami/config/install/block_content.type.banner_block.yml core/profiles/demo_umami/config/install/block_content.type.banner_block.yml
block_content.type.basic.yml file core/profiles/standard/config/install/block_content.type.basic.yml core/profiles/standard/config/install/block_content.type.basic.yml
block_content.type.basic.yml file core/profiles/demo_umami/config/install/block_content.type.basic.yml core/profiles/demo_umami/config/install/block_content.type.basic.yml
block_content.type.disclaimer_block.yml file core/profiles/demo_umami/config/install/block_content.type.disclaimer_block.yml core/profiles/demo_umami/config/install/block_content.type.disclaimer_block.yml
block_content.type.footer_promo_block.yml file core/profiles/demo_umami/config/install/block_content.type.footer_promo_block.yml core/profiles/demo_umami/config/install/block_content.type.footer_promo_block.yml
block_content.type.html.twig file core/modules/help_topics/help_topics/block_content.type.html.twig ---
label: 'Defining a custom block type'
related:
- block.overview
- block.configure
- block.place
- block_content.add
- field_ui.add_field
- field_ui.manage_form
- field_ui.manage_display
---
{% set types_url =…
block_content.uuid_lookup service core/modules/block_content/block_content.services.yml \Drupal\block_content\BlockContentUuidLookup
block_content_add_body_field function core/modules/block_content/block_content.module Adds the default body field to a custom block type.
block_content_body_field.yml file core/modules/block_content/migrations/block_content_body_field.yml core/modules/block_content/migrations/block_content_body_field.yml
block_content_entity_display.yml file core/modules/block_content/migrations/block_content_entity_display.yml core/modules/block_content/migrations/block_content_entity_display.yml
block_content_entity_form_display.yml file core/modules/block_content/migrations/block_content_entity_form_display.yml core/modules/block_content/migrations/block_content_entity_form_display.yml
block_content_entity_type_alter function core/modules/block_content/block_content.module Implements hook_entity_type_alter().
block_content_help function core/modules/block_content/block_content.module Implements hook_help().
block_content_post_update_add_views_reusable_filter function core/modules/block_content/block_content.post_update.php Adds a 'reusable' filter to all Custom Block views.
block_content_query_entity_reference_alter function core/modules/block_content/block_content.module Implements hook_query_TAG_alter().
block_content_test.info.yml file core/modules/block_content/tests/modules/block_content_test/block_content_test.info.yml core/modules/block_content/tests/modules/block_content_test/block_content_test.info.yml
block_content_test.module file core/modules/block_content/tests/modules/block_content_test/block_content_test.module A dummy module for testing custom block related hooks.
block_content_test.routing.yml file core/modules/block_content/tests/modules/block_content_test/block_content_test.routing.yml core/modules/block_content/tests/modules/block_content_test/block_content_test.routing.yml
block_content_test_block_content_insert function core/modules/block_content/tests/modules/block_content_test/block_content_test.module Implements hook_block_content_insert().
block_content_test_block_content_presave function core/modules/block_content/tests/modules/block_content_test/block_content_test.module Implements hook_block_content_presave().
block_content_test_block_content_update function core/modules/block_content/tests/modules/block_content_test/block_content_test.module Implements hook_block_content_update().
block_content_test_block_content_view function core/modules/block_content/tests/modules/block_content_test/block_content_test.module Implements hook_block_content_view().
block_content_test_views.info.yml file core/modules/block_content/tests/modules/block_content_test_views/block_content_test_views.info.yml core/modules/block_content/tests/modules/block_content_test_views/block_content_test_views.info.yml
block_content_theme function core/modules/block_content/block_content.module Implements hook_theme().
block_content_type.yml file core/modules/block_content/migrations/block_content_type.yml core/modules/block_content/migrations/block_content_type.yml
block_content_update_8001 function core/modules/block_content/block_content.install Add 'revision_translation_affected' field to 'block_content' entities.
block_content_update_8002 function core/modules/block_content/block_content.install Generalizes the d6_block_content_type and d6_block_content_body_field
migrations.
block_content_update_8003 function core/modules/block_content/block_content.install Add 'revision_created' and 'revision_user' fields to 'block_content' entities.
block_content_update_8300 function core/modules/block_content/block_content.install Fix the block_content entity type to specify its revision data table.

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.