19 declare(strict_types=1);
34 ControlledRepo $controlled_repo,
35 StandardRepo $standard_repo
43 switch ($vocabulary->
type()) {
45 case Type::CONTROLLED_VOCAB_VALUE:
48 case Type::CONTROLLED_STRING:
59 switch ($vocabulary->
type()) {
60 case Type::CONTROLLED_STRING:
64 case Type::CONTROLLED_VOCAB_VALUE:
73 switch ($vocabulary->
type()) {
74 case Type::CONTROLLED_STRING:
79 case Type::CONTROLLED_VOCAB_VALUE:
87 switch ($vocabulary->
type()) {
88 case Type::CONTROLLED_STRING:
91 case Type::CONTROLLED_VOCAB_VALUE:
106 $slot = $vocabulary->
slot();
107 $other_active_repositories_count =
108 ((
int) $this->standard_repo->isVocabularyActive($slot)) +
109 $this->controlled_repo->countActiveVocabulariesForSlot($slot) -
111 return $other_active_repositories_count > 0;