You are here

public function Page::removeAccessCondition in Page Manager 8

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

Removes a specific access condition.

Parameters

string $condition_id: The access condition ID.

Return value

$this

Overrides PageInterface::removeAccessCondition

File

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

Class

Page
Defines a Page entity class.

Namespace

Drupal\page_manager\Entity

Code

public function removeAccessCondition($condition_id) {
  $this
    ->getAccessConditions()
    ->removeInstanceId($condition_id);
  return $this;
}