src/ScContent/Mapper/Installation/LayoutMapper.php
public function findExistingWidgets($theme, $names)
    {
        if (! is_array($names)) {
            $names = [$names];
        }
        $select = $this->getSql()->select()
            ->from($this->getTable(self::LayoutTableAlias))
            ->columns([
                'name',
            ])
            ->where([
                'theme' => $theme,
                'name'  => $names, // = new In('name', $names)
            ]);

        $result = $this->execute($select);
        return $this->toList($result, 'name');
    }
public function findExistingWidgets($theme, $names)
    {
        if (! is_array($names)) {
            $names = [$names];
        }
        $select = $this->getSql()->select()
            ->from($this->getTable(self::LayoutTableAlias))
            ->columns([
                'name',
            ])
            ->where([
                'theme' => $theme,
                'name'  => $names, // = new In('name', $names)
            ]);

        $result = $this->execute($select);
        return $this->toList($result, 'name');
    }
public function findExistingWidgets ( $ theme , $ names ) { if ( ! is_array ( $ names ) ) { $ names = [ $ names ] ; } $ select = $ this -> getSql ( ) -> select ( ) -> from ( $ this -> getTable ( self :: LayoutTableAlias ) ) -> columns ( [ 'name' , ] ) -> where ( [ 'theme' => $ theme , 'name' => $ names , // = new In('name', $names) ] ) ; $ result = $ this -> execute ( $ select ) ; return $ this -> toList ( $ result , 'name' ) ; }
Returns the names of the widgets from a predefined list,
that are registered in the database.

@param  string $theme
@param  string $names
@return array
Returns the names of the widgets from a predefined list that are registered in the database .