public function ViewUI::set

Overrides \Drupal\Core\Config\Entity\ConfigEntityBase::set().

Overrides ComplexDataInterface::set

2 calls to ViewUI::set()
ViewUI::buildDisplaysReorderForm in drupal/core/modules/views/views_ui/lib/Drupal/views_ui/ViewUI.php
Form constructor callback to reorder displays on a view
ViewUI::submitDisplaysReorderForm in drupal/core/modules/views/views_ui/lib/Drupal/views_ui/ViewUI.php
Submit handler for rearranging display form

File

drupal/core/modules/views/views_ui/lib/Drupal/views_ui/ViewUI.php, line 142
Definition of Drupal\views_ui\ViewUI.

Class

ViewUI
Stores UI related temporary settings.

Namespace

Drupal\views_ui

Code

public function set($property_name, $value) {
  if (property_exists($this->storage, $property_name)) {
    $this->storage
      ->set($property_name, $value);
  }
  else {
    $this->{$property_name} = $value;
  }
}