You are here

public function Page::getAccessConditions in Page Manager 8

Same name and namespace in other branches
  1. 8.4 src/Entity/Page.php \Drupal\page_manager\Entity\Page::getAccessConditions()

Returns the conditions used for determining access for this page entity.

Return value

\Drupal\Core\Condition\ConditionInterface[]|\Drupal\Core\Condition\ConditionPluginCollection An array of configured condition plugins.

Overrides PageInterface::getAccessConditions

1 call to Page::getAccessConditions()
Page::getPluginCollections in src/Entity/Page.php
Gets the plugin collections used by this object.

File

src/Entity/Page.php, line 202
Contains \Drupal\page_manager\Entity\Page.

Class

Page
Defines a Page entity class.

Namespace

Drupal\page_manager\Entity

Code

public function getAccessConditions() {
  if (!$this->accessConditionCollection) {
    $this->accessConditionCollection = new ConditionPluginCollection(\Drupal::service('plugin.manager.condition'), $this
      ->get('access_conditions'));
  }
  return $this->accessConditionCollection;
}