You are here

public function FlexiformFormEntityManager::getContextDefinitions in Flexiform 8

Get the context definitions from the form entity plugins.

Return value

ContextDefinitionInterface[]

File

src/FormEntity/FlexiformFormEntityManager.php, line 84

Class

FlexiformFormEntityManager
Class for form entity managers.

Namespace

Drupal\flexiform\FormEntity

Code

public function getContextDefinitions() {
  $context_definitions = [];
  foreach ($this->contexts as $namespace => $context) {
    $context_definitions[$namespace] = $context
      ->getContextDefinition();
  }
  return $context_definitions;
}