public function DiffLayoutManager::getDefaultLayout in Diff 8
Gets the default layout plugin selected.
Take the first option of the array returned by getPluginOptions.
Return value
string The id of the default plugin.
File
- src/
DiffLayoutManager.php, line 100
Class
- DiffLayoutManager
- Plugin type manager for field diff builders.
Namespace
Drupal\diffCode
public function getDefaultLayout() {
$plugins = array_keys($this
->getPluginOptions());
return reset($plugins);
}