for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
class CommentsGridField extends GridField
You can fix this by adding a namespace to your class:
namespace YourVendor; class YourClass { }
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.
{
/**
* {@inheritdoc}
*/
protected function newRow($total, $index, $record, $attributes, $content)
if (!isset($attributes['class'])) {
$attributes['class'] = '';
}
if ($record->IsSpam) {
$attributes['class'] .= ' spam';
return FormField::create_tag(
'tr',
$attributes,
$content
);
You can fix this by adding a namespace to your class:
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.