You are here

class Dependencies in Search API 8

Provides an easy mechanism for building a dependency array.

Hierarchy

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\Utility
View 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

Namesort descending Modifiers Type Description Overrides
Dependencies::toArray public function Gets the dependencies as an array as expected by configuration.
DependencyTrait::$dependencies protected property The object's dependencies.
DependencyTrait::addDependencies protected function Adds multiple dependencies.
DependencyTrait::addDependency protected function Adds a dependency.