Skip to content
Snippets Groups Projects
Commit 21cc9b21 authored by Stephen Mulvihill's avatar Stephen Mulvihill
Browse files

Issue #3423505: Use ::getFilteredDefinitions when building conditions for definition form

parent be7a7515
No related branches found
No related tags found
No related merge requests found
......@@ -407,7 +407,7 @@ class LibraryDefinitionForm extends EntityForm {
$visibility = $this->entity->getVisibility();
foreach ($this->conditionManager->getDefinitions() as $condition_id => $definition) {
foreach ($this->conditionManager->getFilteredDefinitions('library_manager') as $condition_id => $definition) {
/** @var \Drupal\Core\Condition\ConditionInterface $condition */
$condition = $this->conditionManager->createInstance($condition_id, isset($visibility[$condition_id]) ? $visibility[$condition_id] : []);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment