continue to build frontpage
This commit is contained in:
@@ -101,6 +101,20 @@ function materio_home_entity_bundle_field_info(EntityTypeInterface $entity_type,
|
||||
return $fields;
|
||||
}
|
||||
}
|
||||
/**
|
||||
* Implement hook_entity_base_field_info_alter().
|
||||
*
|
||||
* @param $fields
|
||||
* @param EntityTypeInterface $entity_type
|
||||
*/
|
||||
|
||||
function materio_home_entity_base_field_info_alter(&$fields, EntityTypeInterface $entity_type) {
|
||||
if ($entity_type->id() == 'node') {
|
||||
if (isset($fields['title'])) {
|
||||
$fields['title']->setDisplayConfigurable('view', TRUE);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Implement hook_cron().
|
||||
|
Reference in New Issue
Block a user