Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-24002

Split the block renderer method into several component render methods

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.0
    • Fix Version/s: None
    • Component/s: Blocks
    • Labels:
      None
    • Affected Branches:
      MOODLE_20_STABLE

      Description

      Currently each block is produced by a renderer method core_renderer::block, however it's manufacture ensures that overriding the render method from a theme is difficult and it would be better if each part of a block was produced by a separate method and put together in the block method.

      This is something that I have encountered several times already while working with theme renderer's, and I really think it is worth doing as it allows for a lot more flexibility in blocks production.

      Cheers
      Sam

        Attachments

          Activity

            People

            • Assignee:
              samhemelryk Sam Hemelryk
              Reporter:
              samhemelryk Sam Hemelryk
              Tester:
              Nobody
              Participants:
              Component watchers:
              Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: