public function EntityTypeInfo::entityTypeBuild in Form mode manager 8.2
Same name and namespace in other branches
- 8 src/EntityTypeInfo.php \Drupal\form_mode_manager\EntityTypeInfo::entityTypeBuild()
Add new properties onto entity types.
This is an alter hook bridge.
Parameters
\Drupal\Core\Entity\EntityTypeInterface[] $entity_types: The master entity type list to alter.
See also
File
- src/
EntityTypeInfo.php, line 92
Class
- EntityTypeInfo
- Manipulates entity type information.
Namespace
Drupal\form_mode_managerCode
public function entityTypeBuild(array &$entity_types) {
if ($entity_types['entity_form_display']
->getFormClass('edit')) {
$entity_types['entity_form_display']
->setFormClass('edit', self::FMM_ENTITY_FORM_DISPLAY_EDIT);
}
}