You are here

interface SelectionInterface in Multi-path autocomplete 8

Interface definition for Multi-path autocomplete selection plugins.

Hierarchy

Expanded class hierarchy of SelectionInterface

All classes that implement SelectionInterface

1 file declares its use of SelectionInterface
SelectionBase.php in lib/Drupal/mpac/Plugin/mpac/selection/SelectionBase.php
Contains \Drupal\mpac\Plugin\mpac\selection\SelectionBase.

File

lib/Drupal/mpac/Plugin/Type/Selection/SelectionInterface.php, line 13
Contains \Drupal\mpac\Plugin\Type\Selection\SelectionInterface.

Namespace

Drupal\mpac\Plugin\Type\Selection
View source
interface SelectionInterface {

  /**
   * Returns a list of matching items.
   *
   * @return array
   *   An array of path items. Keys are the system paths of the items and
   *   values are (safe HTML) titles of the corresponding pages.
   */
  public function getMatchingItems($match = NULL, $match_operator = 'CONTAINS', $limit = 0);

  /**
   * Counts items that matches against the given string.
   *
   * @return int
   *   The number of matching items.
   */
  public function countMatchingItems($match = NULL, $match_operator = 'CONTAINS');

}

Members

Namesort descending Modifiers Type Description Overrides
SelectionInterface::countMatchingItems public function Counts items that matches against the given string. 2
SelectionInterface::getMatchingItems public function Returns a list of matching items. 2