public function View::get

Overrides Drupal\Core\Entity\EntityInterface::get().

Overrides ConfigEntityBase::get

2 calls to View::get()
View::getHumanName in drupal/core/modules/views/lib/Drupal/views/Plugin/Core/Entity/View.php
Return the human readable name for a view.
View::id in drupal/core/modules/views/lib/Drupal/views/Plugin/Core/Entity/View.php
Overrides Drupal\Core\Entity\EntityInterface::id().

File

drupal/core/modules/views/lib/Drupal/views/Plugin/Core/Entity/View.php, line 146
Definition of Drupal\views\Plugin\Core\Entity\View.

Class

View
Defines a View configuration entity class.

Namespace

Drupal\views\Plugin\Core\Entity

Code

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

  // Ensure that an executable View is available.
  if ($property_name == 'executable' && !isset($this->{$property_name})) {
    $this
      ->set('executable', new ViewExecutable($this));
  }
  return parent::get($property_name, $langcode);
}