original_string: function GrantAddContentToLayout(Layout $layout)
      {
          //dummy content for evaluation
          $content = new Content();
          $content->SetUserGroup($layout->GetUserGroup());
          $layoutRights = $layout->GetUserGroupRights();
          if ($layoutRights)
          {
              $content->SetUserGroupRights($layoutRights->GetContentRights());
          }
          return $this->Grant(BackendAction::Create(), $content);
      }
code: function GrantAddContentToLayout(Layout $layout)
      {
          //dummy content for evaluation
          $content = new Content();
          $content->SetUserGroup($layout->GetUserGroup());
          $layoutRights = $layout->GetUserGroupRights();
          if ($layoutRights)
          {
              $content->SetUserGroupRights($layoutRights->GetContentRights());
          }
          return $this->Grant(BackendAction::Create(), $content);
      }
code_tokens: function GrantAddContentToLayout ( Layout $ layout ) { //dummy content for evaluation $ content = new Content ( ) ; $ content -> SetUserGroup ( $ layout -> GetUserGroup ( ) ) ; $ layoutRights = $ layout -> GetUserGroupRights ( ) ; if ( $ layoutRights ) { $ content -> SetUserGroupRights ( $ layoutRights -> GetContentRights ( ) ) ; } return $ this -> Grant ( BackendAction :: Create ( ) , $ content ) ; }
docstring: Grant evaluation for adding content on top of a layout area
  @param Layout $layout The layout
  @return GrantResult Returns the grant result telling if creation is allowed
docstring_tokens: Grant evaluation for adding content on top of a layout area