public function listSections(Request $request)
    {
        if ($request->query->has('identifier')) {
            $sections = array(
                $this->loadSectionByIdentifier($request),
            );
        } else {
            $sections = $this->sectionService->loadSections();
        }

        return new Values\SectionList($sections, $request->getPathInfo());
    }
public function listSections(Request $request)
    {
        if ($request->query->has('identifier')) {
            $sections = array(
                $this->loadSectionByIdentifier($request),
            );
        } else {
            $sections = $this->sectionService->loadSections();
        }

        return new Values\SectionList($sections, $request->getPathInfo());
    }
public function listSections ( Request $ request ) { if ( $ request -> query -> has ( 'identifier' ) ) { $ sections = array ( $ this -> loadSectionByIdentifier ( $ request ) , ) ; } else { $ sections = $ this -> sectionService -> loadSections ( ) ; } return new Values \ SectionList ( $ sections , $ request -> getPathInfo ( ) ) ; }
List sections.

@return \eZ\Publish\Core\REST\Server\Values\SectionList
List sections .