Skip to content
Snippets Groups Projects

make a start

Closes #3476278

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
66 * added to its attribute:
67 67 * @code
68 * forms = {
69 * "settings_tray" = "\Drupal\system\Plugin\Block\SystemPoweredByBlock",
70 * },
68 * 'forms' => [
69 * "settings_tray" => \Drupal\system\Plugin\Block\SystemPoweredByBlock::class,
70 * ],
71 71 * @endcode
72 72 *
73 * Therefore, the entire Settings Tray API is just this annotation: it controls
73 * Therefore, the entire Settings Tray API is just this attribute: it controls
74 74 * what the Settings Tray does for a given block.
75 75 *
76 76 * @see settings_tray_block_alter()
77 77 * @see \Drupal\Tests\settings_tray\Functional\SettingsTrayBlockTest::testPossibleAnnotations()
  • Author Maintainer

    This also needs to change. However, I think it would be better to review the use of annotation in tests in a separate issue. Let's keep this about high level api docs.

  • Please register or sign in to reply
  • quietone left review comments

    left review comments

  • nicxvan
  • nicxvan
  • nicxvan
  • nicxvan
  • nicxvan
  • nicxvan
  • nicxvan
  • nicxvan
    nicxvan @nicxvan started a thread on the diff
  • 2023 2038 * * )
    2024 2039 * @endcode
    2025 2040 *
    2026 * Note that you must use double quotes; single quotes will not work in
    2027 * annotations.
    2028 *
    2029 * Some annotation types, which extend the "@ PluginID" annotation class, have
    2030 * only a single 'id' key in their annotation. For these, it is possible to use
    2031 * a shorthand annotation. For example:
    2041 * Some attribute types, which extend the "@ PluginID" attribute class, have
  • nicxvan
  • nicxvan
  • Lee Rowlands added 1 commit

    added 1 commit

    • 6e56453b - Apply 9 suggestion(s) to 3 file(s)

    Compare with previous version

  • Please register or sign in to reply
    Loading