You are here

public function EntityTypeInfo::entityTypeBuild in Form mode manager 8

Same name and namespace in other branches
  1. 8.2 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

hook_entity_type_build()

File

src/EntityTypeInfo.php, line 92

Class

EntityTypeInfo
Manipulates entity type information.

Namespace

Drupal\form_mode_manager

Code

public function entityTypeBuild(array &$entity_types) {
  $entity_types['entity_form_display']
    ->setFormClass('edit', self::FMM_ENTITY_FORM_DISPLAY_EDIT);
}