You are here

public function EntityTypeInfo::entityTypeBuild in Workspace 8

Same name and namespace in other branches
  1. 8.2 src/EntityTypeInfo.php \Drupal\workspace\EntityTypeInfo::entityTypeBuild()

Parameters

array $entity_types:

File

src/EntityTypeInfo.php, line 40

Class

EntityTypeInfo
Service class for manipulating entity type information.

Namespace

Drupal\workspace

Code

public function entityTypeBuild(array &$entity_types) {
  if (isset($entity_types['workspace_type'])) {
    $entity_types['workspace_type'] = $this
      ->buildWorkspaceType($entity_types['workspace_type']);
  }
  if (isset($entity_types['workspace'])) {
    $entity_types['workspace'] = $this
      ->buildWorkspace($entity_types['workspace']);
  }
}