You are here

class SelectionBase in Multi-path autocomplete 8

Same name in this branch
  1. 8 lib/Drupal/mpac/Plugin/Derivative/SelectionBase.php \Drupal\mpac\Plugin\Derivative\SelectionBase
  2. 8 lib/Drupal/mpac/Plugin/mpac/selection/SelectionBase.php \Drupal\mpac\Plugin\mpac\selection\SelectionBase

Plugin implementation of the 'selection' mpac.

Plugin annotation


@MpacSelection(
  id = "default",
  module = "mpac",
  label = @Translation("Default"),
  group = "default",
  weight = 0,
  derivative = "Drupal\mpac\Plugin\Derivative\SelectionBase"
)

Hierarchy

Expanded class hierarchy of SelectionBase

2 files declare their use of SelectionBase
NodeSelection.php in lib/Drupal/mpac/Plugin/mpac/selection/NodeSelection.php
Contains \Drupal\mpac\Plugin\mpac\selection\NodeSelection.
PathSelection.php in lib/Drupal/mpac/Plugin/mpac/selection/PathSelection.php
Contains \Drupal\mpac\Plugin\mpac\selection\PathSelection.

File

lib/Drupal/mpac/Plugin/mpac/selection/SelectionBase.php, line 26
Contains \Drupal\mpac\Plugin\mpac\selection\SelectionBase.

Namespace

Drupal\mpac\Plugin\mpac\selection
View source
class SelectionBase implements SelectionInterface {

  /**
   * Constructs a SelectionBase object.
   */
  public function __construct() {
  }
  public function countMatchingItems($match = NULL, $match_operator = 'CONTAINS') {
    return 0;
  }
  public function getMatchingItems($match = NULL, $match_operator = 'CONTAINS', $limit = 0) {
    return array();
  }

}

Members

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