original_string: public function getFilteredDefinitions($type) {
      $all = $this->getDefinitions();
  
      return array_filter($all, function ($definition) use ($type) {
        return $definition['type'] === $type;
      });
    }
code: public function getFilteredDefinitions($type) {
      $all = $this->getDefinitions();
  
      return array_filter($all, function ($definition) use ($type) {
        return $definition['type'] === $type;
      });
    }
code_tokens: public function getFilteredDefinitions ( $ type ) { $ all = $ this -> getDefinitions ( ) ; return array_filter ( $ all , function ( $ definition ) use ( $ type ) { return $ definition [ 'type' ] === $ type ; } ) ; }
docstring: Filters plugin definitions by a type.
  
  @param string $type
  Type to filter by.
  
  @return array
  A list of filtered plugin definitions.
docstring_tokens: Filters plugin definitions by a type .