function NodeHooks1::entityExtraFieldInfo
Implements hook_entity_extra_field_info().
File
-
core/
modules/ node/ src/ Hook/ NodeHooks1.php, line 173
Class
- NodeHooks1
- Hook implementations for node.
Namespace
Drupal\node\HookCode
public function entityExtraFieldInfo() {
$extra = [];
$description = t('Node module element');
foreach (NodeType::loadMultiple() as $bundle) {
$extra['node'][$bundle->id()]['display']['links'] = [
'label' => t('Links'),
'description' => $description,
'weight' => 100,
'visible' => TRUE,
];
}
return $extra;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.