public function Page::getAccessCondition in Page Manager 8.4
Same name and namespace in other branches
- 8 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 216
Class
- Page
- Defines a Page entity class.
Namespace
Drupal\page_manager\EntityCode
public function getAccessCondition($condition_id) {
return $this
->getAccessConditions()
->get($condition_id);
}