module/Customize/src/Grid/Customize/Model/Extra/Model.php
public function findByRoot( $rootParagraphId )
    {
        $root  = ( (int) $rootParagraphId ) ?: null;
        $extra = $this->getMapper()
                      ->findByRoot( $root );

        if ( empty( $extra ) )
        {
            $extra = $this->getMapper()
                          ->create( array(
                              'rootParagraphId' => $root,
                          ) );
        }

        return $extra;
    }
public function findByRoot( $rootParagraphId )
    {
        $root  = ( (int) $rootParagraphId ) ?: null;
        $extra = $this->getMapper()
                      ->findByRoot( $root );

        if ( empty( $extra ) )
        {
            $extra = $this->getMapper()
                          ->create( array(
                              'rootParagraphId' => $root,
                          ) );
        }

        return $extra;
    }
public function findByRoot ( $ rootParagraphId ) { $ root = ( ( int ) $ rootParagraphId ) ? : null ; $ extra = $ this -> getMapper ( ) -> findByRoot ( $ root ) ; if ( empty ( $ extra ) ) { $ extra = $ this -> getMapper ( ) -> create ( array ( 'rootParagraphId' => $ root , ) ) ; } return $ extra ; }
Get customize extra by selector & media

@param int|null $rootParagraphId
@return \Customize\Model\Extra\Structure
Get customize extra by selector & media