Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. FieldAPIHandlerTrait.php

function FieldAPIHandlerTrait::getEntityFieldManager

Returns the entity field manager.

Return value

\Drupal\Core\Entity\EntityFieldManagerInterface The entity field manager.

File

core/modules/views/src/FieldAPIHandlerTrait.php, line 74

Class

FieldAPIHandlerTrait
A trait containing helper methods for field definitions.

Namespace

Drupal\views

Code

protected function getEntityFieldManager() {
    if (!isset($this->entityFieldManager)) {
        $this->entityFieldManager = \Drupal::service('entity_field.manager');
    }
    return $this->entityFieldManager;
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal