Commit 10845677 authored by Marco Villegas's avatar Marco Villegas
Browse files

Follow core block specific annotations change.

Following core's 0489b631a8d774f415e71ab964226ab7a703bfd8.
parent 758bc4f9
Loading
Loading
Loading
Loading
+3 −4
Changes for block_example/lib/Drupal/block_example/Plugin/Block/ExampleConfigurableTextBlock.php: 3 added lines, 4 removed lines.
Original line number Diff line number Diff line
@@ -7,18 +7,17 @@

namespace Drupal\block_example\Plugin\Block;

use Drupal\block\Annotation\Block;
use Drupal\block\BlockBase;
use Drupal\Core\Annotation\Translation;
use Drupal\Component\Annotation\Plugin;

/**
 * Provides a 'Example: configurable text string' block.
 *
 * @Plugin(
 * @Block(
 *   id = "example_configurable_text",
 *   subject = @Translation("Title of first block (example_configurable_text)"),
 *   admin_label = @Translation("Title of first block (example_configurable_text)"),
 *   module = "block_example"
 *   admin_label = @Translation("Title of first block (example_configurable_text)")
 * )
 */
class ExampleConfigurableTextBlock extends BlockBase {
+3 −4
Changes for block_example/lib/Drupal/block_example/Plugin/Block/ExampleEmptyBlock.php: 3 added lines, 4 removed lines.
Original line number Diff line number Diff line
@@ -7,18 +7,17 @@

namespace Drupal\block_example\Plugin\Block;

use Drupal\block\Annotation\Block;
use Drupal\block\BlockBase;
use Drupal\Core\Annotation\Translation;
use Drupal\Component\Annotation\Plugin;

/**
 * Provides a 'Example: empty block' block.
 *
 * @Plugin(
 * @Block(
 *   id = "example_empty",
 *   subject = @Translation("Example: empty block"),
 *   admin_label = @Translation("Example: empty block"),
 *   module = "block_example"
 *   admin_label = @Translation("Example: empty block")
 * )
 */
class ExampleEmptyBlock extends BlockBase {
+3 −4
Changes for block_example/lib/Drupal/block_example/Plugin/Block/ExampleUppercaseBlock.php: 3 added lines, 4 removed lines.
Original line number Diff line number Diff line
@@ -7,18 +7,17 @@

namespace Drupal\block_example\Plugin\Block;

use Drupal\block\Annotation\Block;
use Drupal\block\BlockBase;
use Drupal\Core\Annotation\Translation;
use Drupal\Component\Annotation\Plugin;

/**
 * Provides a 'Example: uppercase this please' block.
 *
 * @Plugin(
 * @Block(
 *   id = "example_uppercase",
 *   subject = @Translation("uppercase this please"),
 *   admin_label = @Translation("Example: uppercase this please"),
 *   module = "block_example"
 *   admin_label = @Translation("Example: uppercase this please")
 * )
 */
class ExampleUppercaseBlock extends BlockBase {