protected function getLayoutAttributeWithNamespace(array $attributes, $contentName)
    {
        if (isset($attributes['layout']) === false) {
            return '';
        }

        if (is_string($attributes['layout']) === false) {
            throw new AttributeValueException('Invalid value. Expected string.', 'layout', $contentName);
        }

        if (strlen($attributes['layout']) == 0) {
            throw new AttributeValueException('Invalid value. Expected a non-empty string.', 'layout', $contentName);
        }

        return $this->getLayoutNameWithNamespace($attributes['layout']);
    }
protected function getLayoutAttributeWithNamespace(array $attributes, $contentName)
    {
        if (isset($attributes['layout']) === false) {
            return '';
        }

        if (is_string($attributes['layout']) === false) {
            throw new AttributeValueException('Invalid value. Expected string.', 'layout', $contentName);
        }

        if (strlen($attributes['layout']) == 0) {
            throw new AttributeValueException('Invalid value. Expected a non-empty string.', 'layout', $contentName);
        }

        return $this->getLayoutNameWithNamespace($attributes['layout']);
    }
protected function getLayoutAttributeWithNamespace ( array $ attributes , $ contentName ) { if ( isset ( $ attributes [ 'layout' ] ) === false ) { return '' ; } if ( is_string ( $ attributes [ 'layout' ] ) === false ) { throw new AttributeValueException ( 'Invalid value. Expected string.' , 'layout' , $ contentName ) ; } if ( strlen ( $ attributes [ 'layout' ] ) == 0 ) { throw new AttributeValueException ( 'Invalid value. Expected a non-empty string.' , 'layout' , $ contentName ) ; } return $ this -> getLayoutNameWithNamespace ( $ attributes [ 'layout' ] ) ; }
Returns the value of layout attribute.

@param array  $attributes  List of attributes
@param string $contentName The identifier of the content

@return string
Returns the value of layout attribute .