Loading src/Plugin/views/filter/MediaDirectory.php +6 −0 Changes for src/Plugin/views/filter/MediaDirectory.php: 6 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -123,7 +123,10 @@ class MediaDirectory extends ManyToOne { * {@inheritdoc} */ protected function valueForm(&$form, FormStateInterface $form_state) { $vocabulary = NULL; if (isset($this->options['vid'])) { $vocabulary = $this->vocabularyStorage->load($this->options['vid']); } if (empty($vocabulary)) { $settings_url = Url::fromRoute('media_directories.config_form'); Loading Loading @@ -362,7 +365,10 @@ class MediaDirectory extends ManyToOne { public function calculateDependencies() { $dependencies = parent::calculateDependencies(); $vocabulary = NULL; if (isset($this->options['vid'])) { $vocabulary = $this->vocabularyStorage->load($this->options['vid']); } if ($vocabulary) { $dependencies[$vocabulary->getConfigDependencyKey()][] = $vocabulary->getConfigDependencyName(); } Loading Loading
src/Plugin/views/filter/MediaDirectory.php +6 −0 Changes for src/Plugin/views/filter/MediaDirectory.php: 6 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -123,7 +123,10 @@ class MediaDirectory extends ManyToOne { * {@inheritdoc} */ protected function valueForm(&$form, FormStateInterface $form_state) { $vocabulary = NULL; if (isset($this->options['vid'])) { $vocabulary = $this->vocabularyStorage->load($this->options['vid']); } if (empty($vocabulary)) { $settings_url = Url::fromRoute('media_directories.config_form'); Loading Loading @@ -362,7 +365,10 @@ class MediaDirectory extends ManyToOne { public function calculateDependencies() { $dependencies = parent::calculateDependencies(); $vocabulary = NULL; if (isset($this->options['vid'])) { $vocabulary = $this->vocabularyStorage->load($this->options['vid']); } if ($vocabulary) { $dependencies[$vocabulary->getConfigDependencyKey()][] = $vocabulary->getConfigDependencyName(); } Loading