You are here

public function ViewUI::get in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/views_ui/src/ViewUI.php \Drupal\views_ui\ViewUI::get()
  2. 10 core/modules/views_ui/src/ViewUI.php \Drupal\views_ui\ViewUI::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.

Overrides ConfigEntityInterface::get

File

core/modules/views_ui/src/ViewUI.php, line 152

Class

ViewUI
Stores UI related temporary settings.

Namespace

Drupal\views_ui

Code

public function get($property_name, $langcode = NULL) {
  if (property_exists($this->storage, $property_name)) {
    return $this->storage
      ->get($property_name, $langcode);
  }
  return isset($this->{$property_name}) ? $this->{$property_name} : NULL;
}