public function ConfigEntityBase::get

Overrides Entity::get().

EntityInterface::get() implements support for fieldable entities, but configuration entities are not fieldable.

Overrides Entity::get

1 call to ConfigEntityBase::get()
View::get in drupal/core/modules/views/lib/Drupal/views/Plugin/Core/Entity/View.php
Overrides Drupal\Core\Entity\EntityInterface::get().
1 method overrides ConfigEntityBase::get()
View::get in drupal/core/modules/views/lib/Drupal/views/Plugin/Core/Entity/View.php
Overrides Drupal\Core\Entity\EntityInterface::get().

File

drupal/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php, line 74
Definition of Drupal\Core\Config\Entity\ConfigEntityBase.

Class

ConfigEntityBase
Defines a base configuration entity class.

Namespace

Drupal\Core\Config\Entity

Code

public function get($property_name, $langcode = NULL) {

  // @todo: Add support for translatable properties being not fields.
  return isset($this->{$property_name}) ? $this->{$property_name} : NULL;
}