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

Breadcrumb

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

function EntityInterface::toArray

Gets an array of all property values.

Return value

mixed[] An array of property values, keyed by property name.

3 methods override EntityInterface::toArray()
EntityBase::toArray in core/lib/Drupal/Core/Entity/EntityBase.php
Gets an array of all property values.
FieldableEntityInterface::toArray in core/lib/Drupal/Core/Entity/FieldableEntityInterface.php
Gets an array of all field values.
ViewUI::toArray in core/modules/views_ui/src/ViewUI.php
Gets an array of all property values.

File

core/lib/Drupal/Core/Entity/EntityInterface.php, line 396

Class

EntityInterface
Defines a common interface for all entity objects.

Namespace

Drupal\Core\Entity

Code

public function toArray();

API Navigation

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