function ComponentMetadata::normalize

Same name in this branch
  1. 11.x core/modules/sdc/src/Component/ComponentMetadata.php \Drupal\sdc\Component\ComponentMetadata::normalize()
Same name and namespace in other branches
  1. 10 core/modules/sdc/src/Component/ComponentMetadata.php \Drupal\sdc\Component\ComponentMetadata::normalize()
  2. 10 core/lib/Drupal/Core/Theme/Component/ComponentMetadata.php \Drupal\Core\Theme\Component\ComponentMetadata::normalize()

Normalizes the value object.

Return value

array The normalized value object.

File

core/lib/Drupal/Core/Theme/Component/ComponentMetadata.php, line 224

Class

ComponentMetadata
Component metadata.

Namespace

Drupal\Core\Theme\Component

Code

public function normalize() : array {
  return [
    'path' => $this->path,
    'machineName' => $this->machineName,
    'status' => $this->status,
    'name' => $this->name,
    'group' => $this->group,
    'variants' => $this->variants,
  ];
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.