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

Breadcrumb

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

function LayoutDefinition::get

Gets any arbitrary property.

Parameters

string $property: The property to retrieve.

Return value

mixed The value for that property, or NULL if the property does not exist.

File

core/lib/Drupal/Core/Layout/LayoutDefinition.php, line 162

Class

LayoutDefinition
Provides an implementation of a layout definition and its metadata.

Namespace

Drupal\Core\Layout

Code

public function get($property) {
    if (property_exists($this, $property)) {
        $value = $this->{$property} ?? NULL;
    }
    else {
        $value = $this->additional[$property] ?? NULL;
    }
    return $value;
}

API Navigation

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