public ConfigEntityDependency::getDependencies($type)
Gets the configuration entity's dependencies of the supplied type.
string $type: The type of dependency to return. Either 'module', 'theme', 'config' or 'content'.
array The list of dependencies of the supplied type.
public function getDependencies($type) { $dependencies = array(); if (isset($this->dependencies[$type])) { $dependencies = $this->dependencies[$type]; } if ($type == 'module') { $dependencies[] = substr($this->name, 0, strpos($this->name, '.')); } return $dependencies; }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Config!Entity!ConfigEntityDependency.php/function/ConfigEntityDependency::getDependencies/8.1.x