public function getSectionComponents($sectionName)
    {
        return $this->getComponents()->filter(
            function (ComponentInterface $component) use ($sectionName) {
                return $component instanceof RenderableComponentInterface
                && $component->getRenderSection() === $sectionName;
            }
        );
    }
public function getSectionComponents($sectionName)
    {
        return $this->getComponents()->filter(
            function (ComponentInterface $component) use ($sectionName) {
                return $component instanceof RenderableComponentInterface
                && $component->getRenderSection() === $sectionName;
            }
        );
    }
public function getSectionComponents ( $ sectionName ) { return $ this -> getComponents ( ) -> filter ( function ( ComponentInterface $ component ) use ( $ sectionName ) { return $ component instanceof RenderableComponentInterface && $ component -> getRenderSection ( ) === $ sectionName ; } ) ; }
Returns components filtered by section name.

@param string $sectionName
@return \Illuminate\Support\Collection
Returns components filtered by section name .