You are here

public function FieldableEntityInterface::getFields in Drupal 8

Same name and namespace in other branches
  1. 9 core/lib/Drupal/Core/Entity/FieldableEntityInterface.php \Drupal\Core\Entity\FieldableEntityInterface::getFields()
  2. 10 core/lib/Drupal/Core/Entity/FieldableEntityInterface.php \Drupal\Core\Entity\FieldableEntityInterface::getFields()

Gets an array of all field item lists.

Parameters

bool $include_computed: If set to TRUE, computed fields are included. Defaults to TRUE.

Return value

\Drupal\Core\Field\FieldItemListInterface[] An array of field item lists implementing, keyed by field name.

1 method overrides FieldableEntityInterface::getFields()
ContentEntityBase::getFields in core/lib/Drupal/Core/Entity/ContentEntityBase.php
Gets an array of all field item lists.

File

core/lib/Drupal/Core/Entity/FieldableEntityInterface.php, line 181

Class

FieldableEntityInterface
Interface for entities having fields.

Namespace

Drupal\Core\Entity

Code

public function getFields($include_computed = TRUE);