public function Script::getVisibilityConditions in Script Manager 8
Get the visibility conditions.
Return value
\Drupal\Core\Condition\ConditionPluginCollection An array of plugin instances.
Overrides ScriptInterface::getVisibilityConditions
1 call to Script::getVisibilityConditions()
- Script::getPluginCollections in src/
Entity/ Script.php - Gets the plugin collections used by this object.
File
- src/
Entity/ Script.php, line 112
Class
- Script
- A script config entity.
Namespace
Drupal\script_manager\EntityCode
public function getVisibilityConditions() {
if (!isset($this->visibilityCollection)) {
$this->visibilityCollection = new ConditionPluginCollection(\Drupal::service('plugin.manager.condition'), $this
->get('visibility'));
}
return $this->visibilityCollection;
}