function ConfigEntityInterface::get

Same name in other branches
  1. 9 core/lib/Drupal/Core/Config/Entity/ConfigEntityInterface.php \Drupal\Core\Config\Entity\ConfigEntityInterface::get()
  2. 8.9.x core/lib/Drupal/Core/Config/Entity/ConfigEntityInterface.php \Drupal\Core\Config\Entity\ConfigEntityInterface::get()
  3. 11.x core/lib/Drupal/Core/Config/Entity/ConfigEntityInterface.php \Drupal\Core\Config\Entity\ConfigEntityInterface::get()

Returns the value of a property.

Parameters

string $property_name: The name of the property that should be returned.

Return value

mixed The property if it exists, or NULL otherwise.

2 methods override ConfigEntityInterface::get()
ConfigEntityBase::get in core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php
Returns the value of a property.
ViewUI::get in core/modules/views_ui/src/ViewUI.php
Returns the value of a property.

File

core/lib/Drupal/Core/Config/Entity/ConfigEntityInterface.php, line 86

Class

ConfigEntityInterface
Defines a common interface for configuration entities.

Namespace

Drupal\Core\Config\Entity

Code

public function get($property_name);

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