public function getLayouts(): array
    {
        $layouts = [];

        foreach ($this->config->get('layouts') as $layout) {
            $layout->setParentKey($this->getKey());

            $layouts[] = $layout->toArray();
        }

        return $layouts;
    }
public function getLayouts(): array
    {
        $layouts = [];

        foreach ($this->config->get('layouts') as $layout) {
            $layout->setParentKey($this->getKey());

            $layouts[] = $layout->toArray();
        }

        return $layouts;
    }
public function getLayouts ( ) : array { $ layouts = [ ] ; foreach ( $ this -> config -> get ( 'layouts' ) as $ layout ) { $ layout -> setParentKey ( $ this -> getKey ( ) ) ; $ layouts [ ] = $ layout -> toArray ( ) ; } return $ layouts ; }
Get the flexible content layouts.

@return array
Get the flexible content layouts .