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

Breadcrumb

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

function EntityBase::toArray

Overrides EntityInterface::toArray

2 methods override EntityBase::toArray()
ConfigEntityBase::toArray in core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php
Gets an array of all property values.
ContentEntityBase::toArray in core/lib/Drupal/Core/Entity/ContentEntityBase.php
Gets an array of all property values.

File

core/lib/Drupal/Core/Entity/EntityBase.php, line 596

Class

EntityBase
Defines a base entity class.

Namespace

Drupal\Core\Entity

Code

public function toArray() {
    return [];
}

API Navigation

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