Unknown plant with hard yellow berries

Unknown plant with hard yellow berries

Observation - Unknown plant with hard yellow berries - UK and Ireland. Description: Looks like a cabbage; lots of them growing in the pebbles on Shoreham beach.

Looks like a cabbage; lots of them growing in the pebbles on Shoreham beach.