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

Breadcrumb

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

function ArrayElement::getElementDefinition

Gets data definition object for contained element.

Parameters

int|string $key: Property name or index of the element.

Return value

\Drupal\Core\TypedData\DataDefinitionInterface

1 call to ArrayElement::getElementDefinition()
ArrayElement::parse in core/lib/Drupal/Core/Config/Schema/ArrayElement.php
Builds an array of contained elements.
2 methods override ArrayElement::getElementDefinition()
Mapping::getElementDefinition in core/lib/Drupal/Core/Config/Schema/Mapping.php
Gets data definition object for contained element.
Sequence::getElementDefinition in core/lib/Drupal/Core/Config/Schema/Sequence.php
Gets data definition object for contained element.

File

core/lib/Drupal/Core/Config/Schema/ArrayElement.php, line 70

Class

ArrayElement
Defines a generic configuration element that contains multiple properties.

Namespace

Drupal\Core\Config\Schema

Code

protected abstract function getElementDefinition($key);

API Navigation

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