protected function MinisiteItem::deleteMinisite in Mini site 8
Delete Minisite instance created from field values.
Parameters
\Drupal\Core\Field\FieldItemList $item_list: The item list.
1 call to MinisiteItem::deleteMinisite()
- MinisiteItem::delete in src/
Plugin/ Field/ FieldType/ MinisiteItem.php - Defines custom delete behavior for field values.
File
- src/
Plugin/ Field/ FieldType/ MinisiteItem.php, line 248
Class
- MinisiteItem
- Plugin implementation of the Minisite field type.
Namespace
Drupal\minisite\Plugin\Field\FieldTypeCode
protected function deleteMinisite(FieldItemList $item_list) {
$minisite = Minisite::createInstance($item_list);
if ($minisite) {
$minisite
->delete();
}
}