You are here

public function CurrentAuthenticatedUser::getEntityTypeManager in Search API Saved Searches 8

Retrieves the entity type manager.

Return value

\Drupal\Core\Entity\EntityTypeManagerInterface The entity type manager.

File

src/Plugin/views/argument_validator/CurrentAuthenticatedUser.php, line 84

Class

CurrentAuthenticatedUser
Validates whether the argument matches the current authenticated user.

Namespace

Drupal\search_api_saved_searches\Plugin\views\argument_validator

Code

public function getEntityTypeManager() {
  return $this->entityTypeManager ?: \Drupal::service('entity_type.manager');
}