protected function EntityExtraFieldForm::getConditionDefinitionsByContext in Entity Extra Field 8
Same name and namespace in other branches
- 2.0.x 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 353
Class
- EntityExtraFieldForm
- Define entity extra field form.
Namespace
Drupal\entity_extra_field\FormCode
protected function getConditionDefinitionsByContext(ContextDefinitionInterface $context) {
return $this->conditionPluginManager
->getDefinitionsForContexts([
new Context($context),
]);
}