You are here

protected function FieldBlockConfigForm::getAllEntityTypes in Field as Block 8.2

Returns all entity types.

Return value

\Drupal\Core\Entity\EntityTypeInterface[] Array of entity type definitions.

2 calls to FieldBlockConfigForm::getAllEntityTypes()
FieldBlockConfigForm::getOrphanedEntityTypes in src/Form/FieldBlockConfigForm.php
Get orphaned entity types.
FieldBlockConfigForm::submitForm in src/Form/FieldBlockConfigForm.php
Form submission handler.

File

src/Form/FieldBlockConfigForm.php, line 154

Class

FieldBlockConfigForm
Configuration for select Entity types and delete blocks of unused types.

Namespace

Drupal\fieldblock\Form

Code

protected function getAllEntityTypes() {
  return array_keys($this->entityTypeManager
    ->getDefinitions());
}