Sulu\Bundle\ResourceBundle\Entity\OperatorRepositoryInterface::findAllByLocale PHP Method

findAllByLocale() public method

Searches for all operatory by locale.
public findAllByLocale ( $locale ) : mixed
$locale
return mixed
    public function findAllByLocale($locale);

Usage Example

Example #1
0
 /**
  * {@inheritdoc}
  */
 public function findAllByLocale($locale)
 {
     $operators = $this->operatorRepo->findAllByLocale($locale);
     if ($operators) {
         array_walk($operators, function (&$operator) use($locale) {
             $operator = new Operator($operator, $locale);
         });
     }
     return $operators;
 }
OperatorRepositoryInterface