continue to build frontpage

This commit is contained in:
2019-05-24 16:46:14 +02:00
parent b6b71ab9a4
commit 093073f4f5
17 changed files with 207 additions and 7 deletions

View File

@@ -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().