public function ConfigEntityBase::get
public ConfigEntityBase::get($property_name)
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.
Overrides ConfigEntityInterface::get
File
- core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php, line 157
Class
- ConfigEntityBase
- Defines a base configuration entity class.
Namespace
Drupal\Core\Config\EntityCode
public function get($property_name) { return isset($this->{$property_name}) ? $this->{$property_name} : NULL; }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Config!Entity!ConfigEntityBase.php/function/ConfigEntityBase::get/8.1.x