You are here

protected function EntityExtraFieldForm::getConditionDefinitionsByContext in Entity Extra Field 2.0.x

Same name and namespace in other branches
  1. 8 src/Form/EntityExtraFieldForm.php \Drupal\entity_extra_field\Form\EntityExtraFieldForm::getConditionDefinitionsByContext()

Get condition definitions by context.

Parameters

\Drupal\Core\Plugin\Context\ContextDefinitionInterface $context: The context definition.

Return value

array An array of condition definition based on the given context.

1 call to EntityExtraFieldForm::getConditionDefinitionsByContext()
EntityExtraFieldForm::attachFieldTypeConditionForm in src/Form/EntityExtraFieldForm.php
Attach field type condition form.

File

src/Form/EntityExtraFieldForm.php, line 407

Class

EntityExtraFieldForm
Define entity extra field form.

Namespace

Drupal\entity_extra_field\Form

Code

protected function getConditionDefinitionsByContext(ContextDefinitionInterface $context) : array {
  return $this->conditionPluginManager
    ->getDefinitionsForContexts([
    new Context($context),
  ]);
}