interface TitleBlockPluginInterface in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/lib/Drupal/Core/Block/TitleBlockPluginInterface.php \Drupal\Core\Block\TitleBlockPluginInterface
The interface for "title" blocks.
A title block shows the title returned by the controller.
Hierarchy
- interface \Drupal\Component\Plugin\ConfigurablePluginInterface; interface \Drupal\Core\Plugin\PluginFormInterface; interface \Drupal\Component\Plugin\PluginInspectionInterface; interface \Drupal\Core\Cache\CacheableDependencyInterface; interface \Drupal\Component\Plugin\DerivativeInspectionInterface
- interface \Drupal\Core\Block\BlockPluginInterface
- interface \Drupal\Core\Block\TitleBlockPluginInterface
- interface \Drupal\Core\Block\BlockPluginInterface
Expanded class hierarchy of TitleBlockPluginInterface
All classes that implement TitleBlockPluginInterface
See also
\Drupal\Core\Render\Element\PageTitle
Related topics
3 files declare their use of TitleBlockPluginInterface
- BlockPageVariant.php in core/
modules/ block/ src/ Plugin/ DisplayVariant/ BlockPageVariant.php - Contains \Drupal\block\Plugin\DisplayVariant\BlockPageVariant.
- BlockViewBuilder.php in core/
modules/ block/ src/ BlockViewBuilder.php - Contains \Drupal\block\BlockViewBuilder.
- PageTitleBlock.php in core/
lib/ Drupal/ Core/ Block/ Plugin/ Block/ PageTitleBlock.php - Contains \Drupal\Core\Block\Plugin\Block\PageTitleBlock.
File
- core/
lib/ Drupal/ Core/ Block/ TitleBlockPluginInterface.php, line 19 - Contains \Drupal\Core\Block\TitleBlockPluginInterface.
Namespace
Drupal\Core\BlockView source
interface TitleBlockPluginInterface extends BlockPluginInterface {
/**
* Sets the title.
*
* @param string|array $title
* The page title: either a string for plain titles or a render array for
* formatted titles.
*/
public function setTitle($title);
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
BlockPluginInterface:: |
public | function | Indicates whether the block should be shown. | 1 |
BlockPluginInterface:: |
public | function | Returns the configuration form elements specific to this block plugin. | 1 |
BlockPluginInterface:: |
public | function | Adds block type-specific submission handling for the block form. | 1 |
BlockPluginInterface:: |
public | function | Adds block type-specific validation for the block form. | 1 |
BlockPluginInterface:: |
public | function | Builds and returns the renderable array for this block plugin. | 33 |
BlockPluginInterface:: |
public | function | Suggests a machine name to identify an instance of this block. | 1 |
BlockPluginInterface:: |
public | function | Returns the user-facing block label. | 1 |
BlockPluginInterface:: |
public | function | Sets a particular value in the block settings. | 1 |
CacheableDependencyInterface:: |
public | function | The cache contexts associated with this object. | 26 |
CacheableDependencyInterface:: |
public | function | The maximum age for which this object may be cached. | 26 |
CacheableDependencyInterface:: |
public | function | The cache tags associated with this object. | 19 |
ConfigurablePluginInterface:: |
public | function | Gets default configuration for this plugin. | 9 |
ConfigurablePluginInterface:: |
public | function | Gets this plugin's configuration. | 10 |
ConfigurablePluginInterface:: |
public | function | Sets the configuration for this plugin instance. | 10 |
DependentPluginInterface:: |
public | function | Calculates dependencies for the configured plugin. | 15 |
DerivativeInspectionInterface:: |
public | function | Gets the base_plugin_id of the plugin instance. | 1 |
DerivativeInspectionInterface:: |
public | function | Gets the derivative_id of the plugin instance. | 1 |
PluginFormInterface:: |
public | function | Form constructor. | 23 |
PluginFormInterface:: |
public | function | Form submission handler. | 21 |
PluginFormInterface:: |
public | function | Form validation handler. | 12 |
PluginInspectionInterface:: |
public | function | Gets the definition of the plugin implementation. | 2 |
PluginInspectionInterface:: |
public | function | Gets the plugin_id of the plugin instance. | 2 |
TitleBlockPluginInterface:: |
public | function | Sets the title. | 1 |