in jquery_countdown_timer.git/blob/refs/heads/8.x-1.x:/lib/Drupal/jquery_countdown_timer/Plugin/Block/JqueryCountdownTimerBlock.php line 10

- use Drupal\Component\Annotation\Plugin;
+ use Drupal\block\Annotation\Block;

line 16

- * @Plugin(
+ * @Block(

line 27

- public function settings() {
+ public function defaultConfiguration() {

@see https://drupal.org/node/1880620

Comments

Miszel’s picture

If I change line 10 to

use Drupal\block\Annotation\Block;

I am getting an error:

Doctrine\Common\Annotations\AnnotationException: [Semantical Error] The annotation "@Drupal\block\Annotation\Block" in class Drupal\jquery_countdown_timer\Plugin\Block\JqueryCountdownTimerBlock does not exist, or could not be auto-loaded. in Doctrine\Common\Annotations\AnnotationException::semanticalError() (line 52 of /var/www/drupal8/core/vendor/doctrine/common/lib/Doctrine/Common/Annotations/AnnotationException.php).

discipolo’s picture

did you use the newest drupal 8 and apply all three changes together?

mimran’s picture

Issue summary: View changes
Status: Active » Closed (fixed)