src/Repository.php
public function getByStatus($status)
    {
        $components = [];

        foreach ($this->all() as $name => $component) {
            if ($component->isStatus($status)) {
                $components[$name] = $component;
            }
        }

        return $components;
    }
public function getByStatus($status)
    {
        $components = [];

        foreach ($this->all() as $name => $component) {
            if ($component->isStatus($status)) {
                $components[$name] = $component;
            }
        }

        return $components;
    }
public function getByStatus ( $ status ) { $ components = [ ] ; foreach ( $ this -> all ( ) as $ name => $ component ) { if ( $ component -> isStatus ( $ status ) ) { $ components [ $ name ] = $ component ; } } return $ components ; }
Get components by status.

@param $status

@return array
Get components by status .