class BlockContentStorageBodyFieldHook
Same name and namespace in other branches
- main core/modules/block_content/modules/block_content_storage_body_field/src/Hook/BlockContentStorageBodyFieldHook.php \Drupal\block_content_storage_body_field\Hook\BlockContentStorageBodyFieldHook
Hook implementations for block_content_storage_body_field.
Hierarchy
- class \Drupal\block_content_storage_body_field\Hook\BlockContentStorageBodyFieldHook
Expanded class hierarchy of BlockContentStorageBodyFieldHook
File
-
core/
modules/ block_content/ modules/ block_content_storage_body_field/ src/ Hook/ BlockContentStorageBodyFieldHook.php, line 13
Namespace
Drupal\block_content_storage_body_field\HookView source
class BlockContentStorageBodyFieldHook {
/**
* Implements hook_system_info_alter().
*/
public function systemInfoAlter(array &$info, Extension $file, $type) : void {
// By default, block_content_storage_body_field is hidden but needs to
// be un-hidden when installed, so it can be uninstalled.
if ($file->getType() == 'module' && $file->getName() == 'block_content_storage_body_field') {
$info['hidden'] = FALSE;
}
}
}
Members
| Title Sort descending | Modifiers | Object type | Summary |
|---|---|---|---|
| BlockContentStorageBodyFieldHook::systemInfoAlter | public | function | Implements hook_system_info_alter(). |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.