You are here

public function EntityTypeInfo::entityTypeAlter in Workspace 8

Parameters

array $entity_types:

File

src/EntityTypeInfo.php, line 53

Class

EntityTypeInfo
Service class for manipulating entity type information.

Namespace

Drupal\workspace

Code

public function entityTypeAlter(array &$entity_types) {
  foreach ($this
    ->selectMultiversionedUiEntityTypes($entity_types) as $type_name => $entity_type) {
    $entity_types[$type_name] = $this
      ->addRevisionLinks($entity_type);
  }
}