Skip to content

Instantly share code, notes, and snippets.

View Berdir's full-sized avatar

Sascha Grossenbacher Berdir

View GitHub Profile
<?php
public getRevisionDefaultMetadataKey() {
$revision_metadata_keys = $entity_type->getRevisionMetadataKeys(FALSE);
return isset($revision_metadata_keys['revision_default']) ? $revision_metadata_keys['revision_default'] : 'revision_default';
}
@Berdir
Berdir / schema.yml
Last active August 29, 2015 14:16 — forked from aneek/schema.yml
# Defines the schema to store each connection entry.
sso_connect.connection.* :
type: config_entity
label: SSO connection
mapping:
name:
type: label
label: 'Name'
id: