Search for block

  1. Search 7.x for block
  2. Search 9.5.x for block
  3. Search 8.9.x for block
  4. Search 10.3.x for block
  5. Other projects

Exact matches

These are exact matches according to your search
Title Object type File name Summary
Block class core/modules/views/src/Plugin/views/display/Block.php The plugin that handles a block.
Block class core/modules/block/src/Entity/Block.php Defines a Block configuration entity class.
Block class core/modules/block/src/Plugin/migrate/source/Block.php Drupal 6/7 block source from database.
Block class core/lib/Drupal/Core/Block/Attribute/Block.php The Block attribute.
Block class core/lib/Drupal/Core/Block/Annotation/Block.php Defines a Block annotation object.

All search results

Title Object type File name Summary
BlockPageVariant::$blockViewBuilder property core/modules/block/src/Plugin/DisplayVariant/BlockPageVariant.php The block view builder.
BlockPageVariant::$mainContent property core/modules/block/src/Plugin/DisplayVariant/BlockPageVariant.php The render array representing the main page content.
BlockPageVariant::$title property core/modules/block/src/Plugin/DisplayVariant/BlockPageVariant.php The page title: a string (plain title) or a render array (formatted title).
BlockPageVariant::build function core/modules/block/src/Plugin/DisplayVariant/BlockPageVariant.php Builds and returns the renderable array for the display variant.
BlockPageVariant::create function core/modules/block/src/Plugin/DisplayVariant/BlockPageVariant.php Creates an instance of the plugin.
BlockPageVariant::setMainContent function core/modules/block/src/Plugin/DisplayVariant/BlockPageVariant.php Sets the main content for the page being rendered.
BlockPageVariant::setTitle function core/modules/block/src/Plugin/DisplayVariant/BlockPageVariant.php Sets the title for the page being rendered.
BlockPageVariant::__construct function core/modules/block/src/Plugin/DisplayVariant/BlockPageVariant.php Constructs a new BlockPageVariant.
BlockPageVariantTest class core/modules/block/tests/src/Unit/Plugin/DisplayVariant/BlockPageVariantTest.php @coversDefaultClass \Drupal\block\Plugin\DisplayVariant\BlockPageVariant
@group block
BlockPageVariantTest.php file core/modules/block/tests/src/Unit/Plugin/DisplayVariant/BlockPageVariantTest.php
BlockPageVariantTest::$blockRepository property core/modules/block/tests/src/Unit/Plugin/DisplayVariant/BlockPageVariantTest.php The block repository.
BlockPageVariantTest::$blockViewBuilder property core/modules/block/tests/src/Unit/Plugin/DisplayVariant/BlockPageVariantTest.php The block view builder.
BlockPageVariantTest::$contextHandler property core/modules/block/tests/src/Unit/Plugin/DisplayVariant/BlockPageVariantTest.php The plugin context handler.
BlockPageVariantTest::providerBuild function core/modules/block/tests/src/Unit/Plugin/DisplayVariant/BlockPageVariantTest.php
BlockPageVariantTest::setUpDisplayVariant function core/modules/block/tests/src/Unit/Plugin/DisplayVariant/BlockPageVariantTest.php Sets up a display variant plugin for testing.
BlockPageVariantTest::testBuild function core/modules/block/tests/src/Unit/Plugin/DisplayVariant/BlockPageVariantTest.php Tests the building of a full page variant.
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.
BlockPluginCollection class core/modules/block/src/BlockPluginCollection.php Provides a collection of block plugins.
BlockPluginCollection.php file core/modules/block/src/BlockPluginCollection.php
BlockPluginCollection::$blockId property core/modules/block/src/BlockPluginCollection.php The block ID this plugin collection belongs to.
BlockPluginCollection::get function core/modules/block/src/BlockPluginCollection.php
BlockPluginCollection::initializePlugin function core/modules/block/src/BlockPluginCollection.php Initializes and stores a plugin.
BlockPluginCollection::__construct function core/modules/block/src/BlockPluginCollection.php Constructs a new BlockPluginCollection.
BlockPluginHasSettingsTrayFormAccessCheck class core/modules/settings_tray/src/Access/BlockPluginHasSettingsTrayFormAccessCheck.php Determines whether the requested block has a 'settings_tray' form.
BlockPluginHasSettingsTrayFormAccessCheck.php file core/modules/settings_tray/src/Access/BlockPluginHasSettingsTrayFormAccessCheck.php
BlockPluginHasSettingsTrayFormAccessCheck::access function core/modules/settings_tray/src/Access/BlockPluginHasSettingsTrayFormAccessCheck.php Checks access for accessing a block's 'settings_tray' form.
BlockPluginHasSettingsTrayFormAccessCheck::accessBlockPlugin function core/modules/settings_tray/src/Access/BlockPluginHasSettingsTrayFormAccessCheck.php Checks access for accessing a block plugin's 'settings_tray' form.
BlockPluginHasSettingsTrayFormAccessCheckTest class core/modules/settings_tray/tests/src/Unit/Access/BlockPluginHasSettingsTrayFormAccessCheckTest.php @coversDefaultClass \Drupal\settings_tray\Access\BlockPluginHasSettingsTrayFormAccessCheck
@group settings_tray
BlockPluginHasSettingsTrayFormAccessCheckTest.php file core/modules/settings_tray/tests/src/Unit/Access/BlockPluginHasSettingsTrayFormAccessCheckTest.php
BlockPluginHasSettingsTrayFormAccessCheckTest::providerTestAccess function core/modules/settings_tray/tests/src/Unit/Access/BlockPluginHasSettingsTrayFormAccessCheckTest.php Provides test data for ::testAccess().
BlockPluginHasSettingsTrayFormAccessCheckTest::testAccess function core/modules/settings_tray/tests/src/Unit/Access/BlockPluginHasSettingsTrayFormAccessCheckTest.php @covers ::access
@covers ::accessBlockPlugin
@dataProvider providerTestAccess
BlockPluginId class core/modules/block/src/Plugin/migrate/process/BlockPluginId.php
BlockPluginId.php file core/modules/block/src/Plugin/migrate/process/BlockPluginId.php
BlockPluginId::$blockContentStorage property core/modules/block/src/Plugin/migrate/process/BlockPluginId.php The block_content entity storage handler.
BlockPluginId::$migrateLookup property core/modules/block/src/Plugin/migrate/process/BlockPluginId.php The migrate lookup service.
BlockPluginId::create function core/modules/block/src/Plugin/migrate/process/BlockPluginId.php Creates an instance of the plugin.
BlockPluginId::transform function core/modules/block/src/Plugin/migrate/process/BlockPluginId.php Set the block plugin id.
BlockPluginId::__construct function core/modules/block/src/Plugin/migrate/process/BlockPluginId.php Constructs a BlockPluginId object.
BlockPluginInterface interface core/lib/Drupal/Core/Block/BlockPluginInterface.php Defines the required interface for all block plugins.
BlockPluginInterface.php file core/lib/Drupal/Core/Block/BlockPluginInterface.php
BlockPluginInterface::access function core/lib/Drupal/Core/Block/BlockPluginInterface.php Indicates whether the block should be shown.
BlockPluginInterface::blockForm function core/lib/Drupal/Core/Block/BlockPluginInterface.php Returns the configuration form elements specific to this block plugin.
BlockPluginInterface::blockSubmit function core/lib/Drupal/Core/Block/BlockPluginInterface.php Adds block type-specific submission handling for the block form.
BlockPluginInterface::blockValidate function core/lib/Drupal/Core/Block/BlockPluginInterface.php Adds block type-specific validation for the block form.
BlockPluginInterface::BLOCK_LABEL_VISIBLE constant core/lib/Drupal/Core/Block/BlockPluginInterface.php Indicates the block label (title) should be displayed to end users.
BlockPluginInterface::build function core/lib/Drupal/Core/Block/BlockPluginInterface.php Builds and returns the renderable array for this block plugin.
BlockPluginInterface::getMachineNameSuggestion function core/lib/Drupal/Core/Block/BlockPluginInterface.php Suggests a machine name to identify an instance of this block.
BlockPluginInterface::label function core/lib/Drupal/Core/Block/BlockPluginInterface.php Returns the user-facing block label.
BlockPluginInterface::setConfigurationValue function core/lib/Drupal/Core/Block/BlockPluginInterface.php Sets a particular value in the block settings.
BlockPluginTrait trait core/lib/Drupal/Core/Block/BlockPluginTrait.php Provides the base implementation of a block plugin.

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