You are here

public function Page::getAccessCondition in Page Manager 8

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

Retrieves a specific access condition.

Parameters

string $condition_id: The access condition ID.

Return value

\Drupal\Core\Condition\ConditionInterface The access condition object.

Overrides PageInterface::getAccessCondition

File

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

Class

Page
Defines a Page entity class.

Namespace

Drupal\page_manager\Entity

Code

public function getAccessCondition($condition_id) {
  return $this
    ->getAccessConditions()
    ->get($condition_id);
}