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

Breadcrumb

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

function ElementInfoManager::getInfoProperty

Overrides ElementInfoManagerInterface::getInfoProperty

File

core/lib/Drupal/Core/Render/ElementInfoManager.php, line 76

Class

ElementInfoManager
Provides a plugin manager for element plugins.

Namespace

Drupal\Core\Render

Code

public function getInfoProperty($type, $property_name, $default = NULL) {
    $info = $this->getInfo($type);
    return $info[$property_name] ?? $default;
}

API Navigation

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