You are here

public function MenuTreeStorage::loadByProperties in Colossal Menu 8

Same name and namespace in other branches
  1. 2.x src/Menu/MenuTreeStorage.php \Drupal\colossal_menu\Menu\MenuTreeStorage::loadByProperties()

Loads multiple plugin definitions from the storage based on properties.

Parameters

array $properties: The properties to filter by.

Return value

array An array of menu link definition arrays.

Throws

\InvalidArgumentException Thrown if an invalid property name is specified in $properties.

Overrides MenuTreeStorageInterface::loadByProperties

File

src/Menu/MenuTreeStorage.php, line 111

Class

MenuTreeStorage
Provides a menu tree storage using the database.

Namespace

Drupal\colossal_menu\Menu

Code

public function loadByProperties(array $properties) {
  return $this->storage
    ->loadByProperties($properties);
}