protected function FlagViewsLinkField::getEntityTypeManager in Flag 8.4
Returns the entity type manager.
Return value
\Drupal\Core\Entity\EntityTypeManagerInterface The entity type manager service.
File
- src/
Plugin/ views/ field/ FlagViewsLinkField.php, line 191
Class
- FlagViewsLinkField
- Provides a views field to flag or unflag the selected content.
Namespace
Drupal\flag\Plugin\views\fieldCode
protected function getEntityTypeManager() {
if (!isset($this->entityTypeManager)) {
$this->entityTypeManager = \Drupal::service('entity_type.manager');
}
return $this->entityTypeManager;
}