original_string: 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']);
      }
code: 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']);
      }
code_tokens: 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' ] ) ; }
docstring: Returns the value of layout attribute.
  
  @param array  $attributes  List of attributes
  @param string $contentName The identifier of the content
  
  @return string
docstring_tokens: Returns the value of layout attribute .