DiscoverableInterface.php

Same filename in other branches
  1. 9 core/lib/Drupal/Component/Discovery/DiscoverableInterface.php
  2. 10 core/lib/Drupal/Component/Discovery/DiscoverableInterface.php
  3. 11.x core/lib/Drupal/Component/Discovery/DiscoverableInterface.php

Namespace

Drupal\Component\Discovery

File

core/lib/Drupal/Component/Discovery/DiscoverableInterface.php

View source
<?php

namespace Drupal\Component\Discovery;


/**
 * Interface for classes providing a type of discovery.
 */
interface DiscoverableInterface {
    
    /**
     * Returns an array of discoverable items.
     *
     * @return array
     *   An array of discovered data keyed by provider.
     *
     * @throws \Drupal\Component\Discovery\DiscoveryException
     *   Exception thrown if there is a problem during discovery.
     */
    public function findAll();

}

Interfaces

Title Deprecated Summary
DiscoverableInterface Interface for classes providing a type of discovery.

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.