| @@ 24-35 (lines=12) @@ | ||
| 21 | /** |
|
| 22 | * {@inheritdoc} |
|
| 23 | */ |
|
| 24 | protected function supports($attribute, $subject) |
|
| 25 | { |
|
| 26 | if (!in_array($attribute, [self::VIEW])) { |
|
| 27 | return false; |
|
| 28 | } |
|
| 29 | ||
| 30 | if (!$subject instanceof TaggableInterface) { |
|
| 31 | return false; |
|
| 32 | } |
|
| 33 | ||
| 34 | return true; |
|
| 35 | } |
|
| 36 | ||
| 37 | /** |
|
| 38 | * {@inheritdoc} |
|
| @@ 24-35 (lines=12) @@ | ||
| 21 | /** |
|
| 22 | * {@inheritdoc} |
|
| 23 | */ |
|
| 24 | protected function supports($attribute, $subject) |
|
| 25 | { |
|
| 26 | if (!in_array($attribute, [self::VIEW])) { |
|
| 27 | return false; |
|
| 28 | } |
|
| 29 | ||
| 30 | if (!$subject instanceof TagInterface) { |
|
| 31 | return false; |
|
| 32 | } |
|
| 33 | ||
| 34 | return true; |
|
| 35 | } |
|
| 36 | ||
| 37 | /** |
|
| 38 | * {@inheritdoc} |
|