You are here

abstract protected function ConditionFormBase::prepareCondition in Block Visibility Groups 8

Prepares the condition used by this form.

Parameters

string $condition_id: Either a condition ID, or the plugin ID used to create a new condition.

Return value

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

1 call to ConditionFormBase::prepareCondition()
ConditionFormBase::buildForm in src/Form/ConditionFormBase.php
Form constructor.
2 methods override ConditionFormBase::prepareCondition()
ConditionAddForm::prepareCondition in src/Form/ConditionAddForm.php
Prepares the condition used by this form.
ConditionEditForm::prepareCondition in src/Form/ConditionEditForm.php
Prepares the condition used by this form.

File

src/Form/ConditionFormBase.php, line 73

Class

ConditionFormBase
Provides a base form for editing and adding a condition.

Namespace

Drupal\block_visibility_groups\Form

Code

protected abstract function prepareCondition($condition_id);