public function Page::getAccessConditions in Page Manager 8.4
Same name and namespace in other branches
- 8 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 197
Class
- Page
- Defines a Page entity class.
Namespace
Drupal\page_manager\EntityCode
public function getAccessConditions() {
if (!$this->accessConditionCollection) {
$this->accessConditionCollection = new ConditionPluginCollection(\Drupal::service('plugin.manager.condition'), $this
->get('access_conditions'));
}
return $this->accessConditionCollection;
}