PHP code example of dnadesign / silverstripe-elemental-virtual
1. Go to this page and download the library: Download dnadesign/silverstripe-elemental-virtual library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
dnadesign / silverstripe-elemental-virtual example snippets
namespace App\Extensions;
use SilverStripe\Core\Extension;
class VirtualSummaryExtension extends Extension
{
protected function updateVirtualLinkedSummary(string &$summary): void
{
$summary = 'Shared: ' . $summary;
}
}