class SystemPoweredByBlock
Same name in other branches
- 9 core/modules/system/src/Plugin/Block/SystemPoweredByBlock.php \Drupal\system\Plugin\Block\SystemPoweredByBlock
- 10 core/modules/system/src/Plugin/Block/SystemPoweredByBlock.php \Drupal\system\Plugin\Block\SystemPoweredByBlock
- 11.x core/modules/system/src/Plugin/Block/SystemPoweredByBlock.php \Drupal\system\Plugin\Block\SystemPoweredByBlock
Provides a 'Powered by Drupal' block.
Plugin annotation
@Block(
id = "system_powered_by_block",
admin_label = @Translation("Powered by Drupal")
)
Hierarchy
- class \Drupal\Component\Plugin\PluginBase implements \Drupal\Component\Plugin\PluginInspectionInterface, \Drupal\Component\Plugin\DerivativeInspectionInterface
- class \Drupal\Component\Plugin\ContextAwarePluginBase extends \Drupal\Component\Plugin\PluginBase implements \Drupal\Component\Plugin\ContextAwarePluginInterface
- class \Drupal\Core\Plugin\ContextAwarePluginBase extends \Drupal\Component\Plugin\ContextAwarePluginBase implements \Drupal\Core\Plugin\ContextAwarePluginInterface, \Drupal\Core\Cache\CacheableDependencyInterface uses \Drupal\Core\TypedData\TypedDataTrait, \Drupal\Core\StringTranslation\StringTranslationTrait, \Drupal\Core\DependencyInjection\DependencySerializationTrait
- class \Drupal\Core\Block\BlockBase extends \Drupal\Core\Plugin\ContextAwarePluginBase implements \Drupal\Core\Block\BlockPluginInterface, \Drupal\Core\Plugin\PluginWithFormsInterface, \Drupal\Core\Render\PreviewFallbackInterface uses \Drupal\Core\Block\BlockPluginTrait, \Drupal\Core\Plugin\ContextAwarePluginAssignmentTrait
- class \Drupal\system\Plugin\Block\SystemPoweredByBlock extends \Drupal\Core\Block\BlockBase
- class \Drupal\Core\Block\BlockBase extends \Drupal\Core\Plugin\ContextAwarePluginBase implements \Drupal\Core\Block\BlockPluginInterface, \Drupal\Core\Plugin\PluginWithFormsInterface, \Drupal\Core\Render\PreviewFallbackInterface uses \Drupal\Core\Block\BlockPluginTrait, \Drupal\Core\Plugin\ContextAwarePluginAssignmentTrait
- class \Drupal\Core\Plugin\ContextAwarePluginBase extends \Drupal\Component\Plugin\ContextAwarePluginBase implements \Drupal\Core\Plugin\ContextAwarePluginInterface, \Drupal\Core\Cache\CacheableDependencyInterface uses \Drupal\Core\TypedData\TypedDataTrait, \Drupal\Core\StringTranslation\StringTranslationTrait, \Drupal\Core\DependencyInjection\DependencySerializationTrait
- class \Drupal\Component\Plugin\ContextAwarePluginBase extends \Drupal\Component\Plugin\PluginBase implements \Drupal\Component\Plugin\ContextAwarePluginInterface
Expanded class hierarchy of SystemPoweredByBlock
File
-
core/
modules/ system/ src/ Plugin/ Block/ SystemPoweredByBlock.php, line 15
Namespace
Drupal\system\Plugin\BlockView source
class SystemPoweredByBlock extends BlockBase {
/**
* {@inheritdoc}
*/
public function defaultConfiguration() {
return [
'label_display' => FALSE,
];
}
/**
* {@inheritdoc}
*/
public function build() {
return [
'#markup' => '<span>' . $this->t('Powered by <a href=":poweredby">Drupal</a>', [
':poweredby' => 'https://www.drupal.org',
]) . '</span>',
];
}
}
Members
Title Sort descending | Modifiers | Object type | Summary |
---|---|---|---|
SystemPoweredByBlock::build | public | function | |
SystemPoweredByBlock::defaultConfiguration | public | function |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.