settings_tray.module
Same filename and directory in other branches
File
-
core/
modules/ settings_tray/ settings_tray.module
View source
<?php
/**
* @file
*/
use Drupal\block\BlockInterface;
/**
* Checks if a block has overrides.
*
* @param \Drupal\block\BlockInterface $block
* The block to check for overrides.
*
* @return bool
* TRUE if the block has overrides otherwise FALSE.
*
* @internal
*/
function _settings_tray_has_block_overrides(BlockInterface $block) {
// @todo Replace the following with $block->hasOverrides() in https://www.drupal.org/project/drupal/issues/2910353
// and remove this function.
return \Drupal::config($block->getEntityType()
->getConfigPrefix() . '.' . $block->id())
->hasOverrides();
}
Functions
Title | Deprecated | Summary |
---|---|---|
_settings_tray_has_block_overrides | Checks if a block has overrides. |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.