63 $this->contextString = $context_string;
86 $this->paragraphs[$uuid] = $item->
getEntity();
93 public function getItem($paragraph_uuid) {
94 $paragraph = isset($this->paragraphs[$paragraph_uuid]) ? $this->paragraphs[$paragraph_uuid] : NULL;
110 foreach ($this->paragraphs as $paragraph) {
111 if ($paragraph->bundle() == $bundle_name) {
133 $this->paragraphs[$paragraph->uuid()] = $paragraph;
141 $this->bufferCache = $buffer_cache;
148 $this->bufferCache->save($this);
155 $this->parentBufferTag = $context_string;
169 $this->childBufferTags[$context_string] = TRUE;
176 return array_flip($this->childBufferTags);
184 $copy->contextString = $context_string;
192 $properties = get_object_vars($this);
193 unset($properties[
'bufferCache']);
194 unset($properties[
'parentBufferTag']);
205 return array_keys($this->
toArray());
212 $this->bufferCache = \Drupal::service(
'paragraphs_editor.edit_buffer.cache');
addChildBufferTag($context_string)
__construct($context_string, $uid)
getItems($bundle_name=NULL)
tagParentBuffer($context_string)
createEditBufferItem(ParagraphInterface $paragraph)
setCache(EditBufferCacheInterface $buffer_cache)
setItem(EditBufferItemInterface $item)
createItem(ParagraphInterface $paragraph)
createCopy($context_string)