class Dependencies in Search API 8
Provides an easy mechanism for building a dependency array.
Hierarchy
- class \Drupal\search_api\Utility\Dependencies uses DependencyTrait
Expanded class hierarchy of Dependencies
1 file declares its use of Dependencies
- ContentEntity.php in src/
Plugin/ search_api/ datasource/ ContentEntity.php
3 string references to 'Dependencies'
- search_api.index.schema.yml in config/
schema/ search_api.index.schema.yml - config/schema/search_api.index.schema.yml
- search_api.server.schema.yml in config/
schema/ search_api.server.schema.yml - config/schema/search_api.server.schema.yml
- search_api_test.schema.yml in tests/
search_api_test/ config/ schema/ search_api_test.schema.yml - tests/search_api_test/config/schema/search_api_test.schema.yml
File
- src/
Utility/ Dependencies.php, line 10
Namespace
Drupal\search_api\UtilityView source
class Dependencies {
use DependencyTrait {
addDependency as public;
addDependencies as public;
}
/**
* Gets the dependencies as an array as expected by configuration.
*
* @return array
* The dependencies.
*/
public function toArray() : array {
return $this->dependencies;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
Dependencies:: |
public | function | Gets the dependencies as an array as expected by configuration. | |
DependencyTrait:: |
protected | property | The object's dependencies. | |
DependencyTrait:: |
protected | function | Adds multiple dependencies. | |
DependencyTrait:: |
protected | function | Adds a dependency. |