function SectionStorageDefinition::get
Same name in other branches
- 8.9.x core/modules/layout_builder/src/SectionStorage/SectionStorageDefinition.php \Drupal\layout_builder\SectionStorage\SectionStorageDefinition::get()
- 10 core/modules/layout_builder/src/SectionStorage/SectionStorageDefinition.php \Drupal\layout_builder\SectionStorage\SectionStorageDefinition::get()
- 11.x core/modules/layout_builder/src/SectionStorage/SectionStorageDefinition.php \Drupal\layout_builder\SectionStorage\SectionStorageDefinition::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/
modules/ layout_builder/ src/ SectionStorage/ SectionStorageDefinition.php, line 61
Class
- SectionStorageDefinition
- Provides section storage type plugin definition.
Namespace
Drupal\layout_builder\SectionStorageCode
public function get($property) {
if (property_exists($this, $property)) {
$value = $this->{$property} ?? NULL;
}
else {
$value = $this->additional[$property] ?? NULL;
}
return $value;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.