Skip to content
Snippets Groups Projects

Tried to resolve error

Open Shivam Tiwari requested to merge issue/layout_paragraphs-3346370:2.0.x into 2.0.x
2 files
+ 5
4
Compare changes
  • Side-by-side
  • Inline
Files
2
@@ -17,7 +17,7 @@ use Drupal\layout_paragraphs\Utility\Dialog;
use Drupal\Core\Entity\Entity\EntityFormDisplay;
use Drupal\Core\Entity\EntityRepositoryInterface;
use Drupal\Core\Entity\EntityTypeManagerInterface;
use Drupal\paragraphs\ParagraphInterface;
use Drupal\paragraphs\Entity\Paragraph;
use Symfony\Component\DependencyInjection\ContainerInterface;
use Drupal\layout_paragraphs\Contracts\ComponentFormInterface;
use Symfony\Component\EventDispatcher\EventDispatcherInterface;
@@ -65,7 +65,7 @@ abstract class ComponentFormBase extends FormBase implements ComponentFormInterf
/**
* The paragraph.
*
* @var \Drupal\paragraphs\ParagraphInterface
* @var \Drupal\paragraphs\Entity\Paragraph
*/
protected $paragraph;
@@ -140,7 +140,7 @@ abstract class ComponentFormBase extends FormBase implements ComponentFormInterf
/**
* {@inheritDoc}
*/
public function setParagraph(ParagraphInterface $paragraph) {
public function setParagraph(Paragraph $paragraph) {
$this->paragraph = $paragraph;
}
Loading