Skip to content

Instantly share code, notes, and snippets.

@johnwards
Created June 22, 2011 08:08
Show Gist options
  • Save johnwards/1039677 to your computer and use it in GitHub Desktop.
Save johnwards/1039677 to your computer and use it in GitHub Desktop.
<?php
class PlainType extends AbstractType
{
public function getDefaultOptions(array $options)
{
return array(
'read_only' => true,
);
}
public function getParent(array $options)
{
return 'field';
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment