function nopremium_entity_extra_field_info in Node Option Premium 8
Implements hook_entity_extra_field_info().
File
- ./
nopremium.module, line 154 - Hook implementations.
Code
function nopremium_entity_extra_field_info() {
$extra = [];
foreach (NodeType::loadMultiple() as $bundle) {
$extra['node'][$bundle
->id()]['display']['premium_message'] = [
'label' => t('Premium message'),
'description' => t('Node option premium module message.'),
'weight' => 100,
'visible' => FALSE,
];
}
return $extra;
}