You are here

public function EntityDisplayTrait::getEntityTypeManager in CCK Select Other 8

Gets the entity type manager.

Return value

\Drupal\Core\Entity\EntityTypeManagerInterface The entity_type.manager.

2 calls to EntityDisplayTrait::getEntityTypeManager()
EntityDisplayTrait::getWidgetSettings in src/EntityDisplayTrait.php
Get the select other widget settings from the form display.
EntityDisplayTrait::hasSelectOtherWidget in src/EntityDisplayTrait.php
Determine if a field has the select other widget configured.

File

src/EntityDisplayTrait.php, line 110

Class

EntityDisplayTrait
Provides methods for dealing with entity displays.

Namespace

Drupal\cck_select_other

Code

public function getEntityTypeManager() {
  if (!isset($this->entityTypeManager)) {
    return \Drupal::entityTypeManager();
  }
  return $this->entityTypeManager;
}